Re: [hibernate-dev] Static constants in org.hibernate.engine.internal.Versioning

2011-06-24 Thread Hardy Ferentschik
Hi, I am also for moving to enums. I am not sure whether or why this should go to org.hibernate.engine.spi though. I am still at odds with this package refactoring. I think we discussed once before that there are several places in the code which would benefit from the introduction of an enu

Re: [hibernate-dev] Static constants in org.hibernate.engine.internal.Versioning

2011-06-23 Thread Strong Liu
+1 for moving to enum, i was looking into the issue described in hhh-6362, and had some local fix how about org.hibernate.engine.internal.Versioning.OptimisticLockingStrategy? (this is what i used in my fix) On Jun 24, 2011, at 8:43 AM, Steve Ebersole wrote: > On 06/23/2011 05:42 PM, Gail Badn

Re: [hibernate-dev] Static constants in org.hibernate.engine.internal.Versioning

2011-06-23 Thread Steve Ebersole
On 06/23/2011 05:42 PM, Gail Badner wrote: > I just ran into an issue where EntityBinding.getOptimisticLockMode() returns > an ordinal from a org.hibernate.annotations.OptimisticLockType enum that is > inconsistent with the static constants in > org.hibernate.engine.internal.Versioning. > > Jira

[hibernate-dev] Static constants in org.hibernate.engine.internal.Versioning

2011-06-23 Thread Gail Badner
I just ran into an issue where EntityBinding.getOptimisticLockMode() returns an ordinal from a org.hibernate.annotations.OptimisticLockType enum that is inconsistent with the static constants in org.hibernate.engine.internal.Versioning. Jira issue: http://opensource.atlassian.com/projects/hiber