Re: [smartweb-devel] Smartweb Auth and problem with XDoclet/ Hibernate union subclass
Brought to you by:
rlogiacco
From: Roberto Lo G. <rlo...@sm...> - 2007-11-07 11:08:51
|
>From the Hibernate official documentation, chapter 9 "Inheritance Mapping": "Three tables are involved for the subclasses. Each table defines columns for all properties of the class, including inherited properties. The limitation of this approach is that if a property is mapped on the superclass, the column name must be the same on all subclass tables. (We might relax this in a future release of Hibernate.) The identity generator strategy is not allowed in union subclass inheritance, indeed the primary key seed has to be shared accross all unioned subclasses of a hierarchy." As stated in the documentation there's a problem on the id generator, plus we got into a "problem" on the database too: 2007/11/7, Gaetano Perrone <gpe...@sm...>: > > Ops i would say the hibernate problem (and not property) sorry.... > :-P > > > Gaetano Perrone wrote: > > > > In my opinion the union-subclass actual solution is very fine because it > > makes the generated database more simple and more "developer-friendly". > > Then I think it deserves at least an attempt to preserve it. > > Could we think to identify accurately the hibernate property and try to > > resolve it?? > > > > > > svetrini wrote: > >> > >> At this time smartweb auth has a little problem... Actually union > >> subclass has. > >> hbm generation fails due to a bug on xdoclet union subclass. > >> We have just sended patches to xdoclet team but none new version was > >> released. > >> I recently found another minor problem on auth module. It doesn't create > >> schema on dbs different from PostgreSQL ( I tried on MySQL and HSQL ) > >> this is not our bug but a knowed hibernate problem. > >> > >> So... > >> > >> What do you think about change from union subclass to another subclass > >> type? > >> > >> I'm waiting to your answers... :-) > >> > > > > > > -- > View this message in context: http://www.nabble.com/Smartweb-Auth-and--problem-with-XDoclet--Hibernate-union-subclass-tf4761003s17546.html#a13624540 > Sent from the SmartWeb Developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > smartweb-devel mailing list > sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartweb-devel > |