I say just let the user specify the column name they use for versions...
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Thursday, December 15, 2005 2:19 AM To: Max Andersen Cc: Hibernate development Subject: Re: [Hibernate] reveng optimistic locking Can(t you write a pluggable guess strategy, like the namingstrategy but for guessing. This open the doors for martian models Max Rydahl Andersen wrote: > Hi, > > One caveat with reveng to the seam app is that we dont currently have > support for detecting optimistic locking for the generated classes - > and I reckon it kinda breaks some of the seam logic. > > Do you think it is safe to auto-enable optlock for columns with the > name "version" and a primitive numeric type or should it be done > explicitly in reveng.xml ? > > I'm mostly for having a "Auto-detect optimistc locking columns" option > in the reverseengineering options ...and i'm also leaning towards > having it enabled by default (who don't use optimistic locking anyway > ;) > > There might be "quirks" in larger reveng situations where it should be > possible to enable/disable "autodetect optimistic locking" for certain > columns/tables. > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel