[hibernate-dev] 3.5.0-Beta-3 has different behaviour on commit as 3.5.0-Beta-2, is this intended?

2010-01-14 Thread Guenther Demetz
-until 3.5.0-Beta-2 a ConstraintViolationException during commit caused 
an implicite rollback and the exception was wrapped into a 
javax.persistence.RollbackException
-now with 3.5.0-Beta-3 the same ConstraintViolationException during 
commit is wrapped into a javax.persistence.PersistenceException without 
implicite rollback

Is this a wanted behavior change?
If yes, where it is documented?

best regards
G.D.
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] HHH-6815 a good bugfix ?

2011-12-12 Thread Guenther Demetz
Hi Hibernate-developers,

in my opinion HHH-6815 (Resolved, fixed version 4.0.0.CR6) isn't a good bugfix, 
please see my comment.
I contacted the committer John Verhaeg a week ago, but I've not got feedback so 
far.

best regards
Guenther Demetz


___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] Incompatibilites between hibernate-core 3.5.0-Beta-2 and hibernate-annotations 3.4.0GA

2009-11-26 Thread Guenther Demetz
//Hi hiberante-developers,

I don't understand exactly what the statement "*/Bundled with Hibernate 
Core as of 3.5.x" /*/(see below/) means, but I'd like to point out that 
there are several*
*incompatibilities between hiberante3.jar (3.5beta2) and 
hibernate-annotations.jar + hibernate-commons-annotations.jar (3.4.0GA).
This because of overlapping classes with different signature (please see 
exceptions below)
The environment with 3.5beta2 works correctly only if in the classpath 
hiberante3.jar preceeds the other 2 jars.
Please ignore this post in case the problem is already known

best regards
G.D.

/Snippet of?/ https://www.hibernate.org/6.html
Hibernate Annotations   3.4.0 GA20.08.2008  Production  /
/

*/Bundled with Hibernate Core as of 3.5.x/*




Classpath sequence:?? 
hibernate-annotations.jar:hibernate-commons-annotations.jar:hibernate3.jar


 [exec] [hibernatetool] Executing Hibernate Tool with a JPA 
Configuration
 [exec] [hibernatetool] 1. task: hbm2ddl (Generates database schema)
 [exec] [hibernatetool] SLF4J: This version of SLF4J requires log4j 
version 1.2.12 or later. See also 
http://www.slf4j.org/codes.html#log4j_version
 [exec] [hibernatetool] EMMA: collecting runtime coverage data ...
 [exec] [hibernatetool] An exception occurred while running exporter 
#2:hbm2ddl (Generates database schema)
 [exec] [hibernatetool] To get the full stack trace run ant with 
-verbose
 [exec] [hibernatetool] Problems in creating a configuration for 
JPA. Have you remembered to add hibernate EntityManager jars to the 
classpath ?
 [exec] [hibernatetool] java.lang.reflect.InvocationTargetException
 [exec] [hibernatetool] *java.lang.IncompatibleClassChangeError: 
class org.hibernate.cfg.ExtendedMappings has interface 
org.hibernate.cfg.Mappings as super class*


Classpath sequence: 
hibernate-commons-annotations.jar:hibernate3.jar:hibernate-annotations.jar


 [exec] [hibernatetool] Executing Hibernate Tool with a JPA 
Configuration
 [exec] [hibernatetool] 1. task: hbm2ddl (Generates database schema)
 [exec] [hibernatetool] SLF4J: This version of SLF4J requires log4j 
version 1.2.12 or later. See also 
http://www.slf4j.org/codes.html#log4j_version
 [exec] [hibernatetool] An exception occurred while running exporter 
#2:hbm2ddl (Generates database schema)
 [exec] [hibernatetool] To get the full stack trace run ant with 
-verbose
 [exec] [hibernatetool] Problems in creating a configuration for 
JPA. Have you remembered to add hibernate EntityManager jars to the 
classpath ?
 [exec] [hibernatetool] java.lang.ExceptionInInitializerError
 [exec] [hibernatetool] *java.lang.ClassCastException: 
org.hibernate.annotations.common.reflection.java.JavaReflectionManager 
cannot be cast to 
org.hibernate.annotations.common.reflection.MetadataProviderInjector

**
*Classpath sequence:? 
hibernate3.jar:hibernate-annotations.jar:hibernate-commons-annotations.jar

???hibernatetool* *hbm2ddl* OK*

___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


Re: [hibernate-dev] Incompatibilites between hibernate-core 3.5.0-Beta-2 and hibernate-annotations 3.4.0GA

2009-11-26 Thread Guenther Demetz
please ignore my last posting!
Now I understood the message.
With HiberanteCore 3.5.x I do not need hibernate-annotations and 
hiberante-entitymanger jar archives in classpath anymore.

G.D.
___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev


[hibernate-dev] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

2009-12-14 Thread Guenther Demetz
Hi hibernate developers,

Since various hibernate releases (3.2, 3.3 , 3.5beta2) I'm still 
wondering about following warning when using hibernate with 
JDBCTransactionFactory (= without JTA integration):

TransactionManagerLookupFactory:80 - No TransactionManagerLookup 
configured (in JTA environment, use of read-write or transactional 
second-level cache is not recommended)

1. According documentation configuration of a TransactionManagerLookup 
is (only) required when using JTA environment, so why this warning?
2. Why is there a hint on how to use JTA environment, just using 
hibernate without JTA?
3. "transactional" concurrency strategy is supported by JBossCache and 
Infinispan and both require integration with JTA, 
 so why should transactional second-level cache not be recommended ?!

best regards
Guenther D.




___
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev