[Dev] changed Hibernated class listing mechanism
Edmund Grossenbacher
egrossenbacher at alterpoint.com
Tue Apr 8 19:13:49 CDT 2008
I just changed the persistent class mechanism. Where previously a bundle would list persistent classes in META-INF/hibernate.classes, now you must use the PersistenceUnit extension point declared in org.ziptie.zap.hibernate. This is an attempt to get away from ad-hoc bundle scanning and move towards a mechanism with Eclipse support and established documentation standards...
When you create an extension, you must specify a schema name, of which only one is currently available in ZipTie: ziptie-ds. For example, org.ziptie.provider.devices now has an extension (in it's plugin.xml) that looks like this:
<extension
point="org.ziptie.zap.hibernate.PersistenceUnit">
<persistence-unit name="ziptie-ds">
<class name="org.ziptie.provider.devices.ZDeviceCore"/>
<class name="org.ziptie.provider.devices.ZDeviceStatus"/>
<class name="org.ziptie.provider.devices.ZDeviceLite"/>
</persistence-unit>
</extension>
-ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ziptie.org/pipermail/dev/attachments/20080408/837027ba/attachment.html
More information about the Dev
mailing list