Jiri Luzny wrote:
Ludovic,
I'm trying the custom mapping and I would like to discuss some issues I have figured out so far: - it doesn't seem that custom mapping is exported to class definition XML therefore cannot be imported e.g. from a backup
oops.. right.. I forgot this one.. It's easy to add.
- I guess custom mapping for StaticListClass and DBListClass is not supported now but due to IMO wrong conditional logic in XWikiHibernateStore.isValidColumnType() (should return false when validtypes is null) you can have a custom mapping for such classes as long as the class is not marked as MultiSelect (when setting MultiSelect I'm getting ClastCastException from Hibernate). I understand that implementation of full list class functionality when a List class set to RelationalStorage might be difficult, but it would be nice to have support at least for single field MultiSelect!
right.. this needs to be fixed..
- Can I mix custom mapping with the default one within one class?
yes.. fields that are not custom mapped are still read/written in the generic tables.. Now if the field is custom mapped in the future the result will be non predictable for the data stored in the generic tables.. Ludovic
Thank you.
On Thu, 18 Aug 2005 17:42:56 +0200 (CEST), you wrote:
Hi Jiri,
The custom mapping feature is working.. There is a need for some documentation and I haven't added the fields in the class editor to edit them through the web. Currently custom mappings can be enabled programatically for example using plugins..
The best way to actually test the feature is to look at the test.
Of course there are some limitations.. Currently enabling a custom mapping after already having data in the db is not a very good idea (there could be problems).
Ludovic
Jiri Luzny wrote:
Hi,
I would like to know what is a status of the new feature Hibernate Custom Mapping. There is already some impl and tests in SVN but no documentation. Is the impl ready to try? If yes, any hints how to start?
Thanks, Jiri.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic