[hibernate-dev] time to remove deprecated hibernate annotations?

2011-06-23 Thread Strong Liu
org.hibernate.annotations.CollectionOfElements org.hibernate.annotations.ForceDiscriminator org.hibernate.annotations.MapKey org.hibernate.annotations.MapKeyManyToMany those annotations above have been marked deprecated for a long time, time to delete them? --- Strong Liu http://hiberna

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

Re: [hibernate-dev] metamodel thoughts

2011-06-23 Thread Steve Ebersole
Here is one of the tests I pointed you to before: https://github.com/hibernate/hibernate-core/blob/master/hibernate-core/src/test/java/org/hibernate/metamodel/binding/SimpleValueBindingTests.java It shows the basic steps. Pretty similar to what you had. On 06/23/2011 02:18 PM, Max Rydahl Anderse

Re: [hibernate-dev] intermittent NPE during an AS7 testsuite run (with Hibernate 4.0.0.Beta1)

2011-06-23 Thread Scott Marlow
The NPE bug is addressed by https://github.com/jbossas/jboss-as/commit/6fb2053524d04655413d7fbe82adf9058e3952c3 The NPE occurred because the AS7 PU service was closed pre-maturely before the EM was. I added logging for when we create the container managed EMF and when we close it. That makes

[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

Re: [hibernate-dev] metamodel thoughts

2011-06-23 Thread Steve Ebersole
Right. One of the design goals is to keep this startup time metamodel both buildable by third parties and mutable by third parties. I say 'keep' because you *can* do this today. The problem in my opinion and that of others is simply that the old api is less then friendly. On Jun 23, 2011 2:53 P

Re: [hibernate-dev] metamodel thoughts

2011-06-23 Thread John Verhaeg
I think the immutability Gail was talking about only applied to classes used internally, not anything configurable by developers. The new design should allow for exactly what you're looking for wrt alternative deployment mechanisms. On Jun 23, 2011, at 2:37 PM, Bill Burke wrote: > Would be coo

Re: [hibernate-dev] metamodel thoughts

2011-06-23 Thread Bill Burke
Would be cool if it was metadata driven so that we could deploy Java objects that represented a Hibernate deployment rather than relying on configuration files. XML and annotation processors would just be used to build the metamodel which is then handed off to the hibernate engine for initiali

Re: [hibernate-dev] metamodel thoughts

2011-06-23 Thread Max Rydahl Andersen
sorry i'm a bit slow here but could someone show (pseudo) code for how the new approach would look like versus before? Here is what I remember being used to (approximately from memory): PersistentClass pc = new PersistentClass(); pc.setEntityName("org.model.Customer"); pc.setTable(new Table("CUS

Re: [hibernate-dev] metamodel thoughts

2011-06-23 Thread Gail Badner
1) is very much how I envisioned the state objects to be used (e.g., data processed from a particular source that initializes an implementation of a common "state" interface). I like what you proposed for 2), however I would like to see bindings that are immutable, at least after being built.

[hibernate-dev] Hibernate Core 4.0.0.Beta2 release

2011-06-23 Thread Steve Ebersole
http://in.relation.to/Bloggers/HibernateCore400Beta2Release -- Steve Ebersole http://hibernate.org ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev