You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
(175) |
Jul
(209) |
Aug
(302) |
Sep
(287) |
Oct
(339) |
Nov
(314) |
Dec
(329) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(479) |
Feb
(389) |
Mar
(599) |
Apr
(307) |
May
(390) |
Jun
(300) |
Jul
(410) |
Aug
(458) |
Sep
(299) |
Oct
(315) |
Nov
(363) |
Dec
(529) |
2005 |
Jan
(568) |
Feb
(434) |
Mar
(1004) |
Apr
(823) |
May
(767) |
Jun
(763) |
Jul
(854) |
Aug
(862) |
Sep
(560) |
Oct
(853) |
Nov
(763) |
Dec
(731) |
2006 |
Jan
(776) |
Feb
(608) |
Mar
(657) |
Apr
(424) |
May
(559) |
Jun
(440) |
Jul
(448) |
Aug
(58) |
Sep
|
Oct
(17) |
Nov
(16) |
Dec
(8) |
2007 |
Jan
(1) |
Feb
(8) |
Mar
(2) |
Apr
(5) |
May
(3) |
Jun
(3) |
Jul
(3) |
Aug
(16) |
Sep
(10) |
Oct
(4) |
Nov
(4) |
Dec
(4) |
2008 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Erwan Le G. (JIRA) <no...@at...> - 2006-06-27 08:53:57
|
wrong sql generated against many-to-any association table --------------------------------------------------------- Key: HHH-1858 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1858 Project: Hibernate3 Type: Bug Components: query-hql Versions: 3.1 rc 1 Environment: tested against postgresql 8.1, OracleXE/10Gr, using hidernate3.&.rc1 and hibernate console3.1.0.beta5 (hibernate3.2.0.cr1) Reporter: Erwan Le Goulven Specifying a column name different than 'id' in <many-to-any> relation leads to uncorrect hql generated. <class name="com.lectra.mapgentest.domain.test.manytomany.ItemImpl" table="ITEM" lazy="true" dynamic-update="true"> ... .. <set name="classifs" table="CLASSIFIABLE_CLASSIFS_ITEM" lazy="true" inverse="false"> <key foreign-key="none"> <column name="items_id" index="ITEM_MYTESTIN_IDX" /> </key> <many-to-any id-type="java.lang.Long" meta-type="string"> <meta-value value="ClassifFolder" class="com.lectra.mapgentest.domain.test.manytomany.ClassifFolderImpl" /> <meta-value value="ClassifAxe" class="com.lectra.mapgentest.domain.test.manytomany.ClassifAxeImpl" /> <column name="classifs_type" /> <column name="classifs_id" /> </many-to-any> </set> .. ... </class> Sample hql triggering error : from ItemImpl i inner join i.classifs c where c.id is not null Generated sq : select itemimpl0_.id as id71_, itemimpl0_.parent_id as parent2_71_ from ITEM itemimpl0_ inner join CLASSIFIABLE_CLASSIFS_ITEM classifs1_ on itemimpl0_.id=classifs1_.items_id where classifs1_.id is not null The same trouble might occur on <any> relation, and the column name resolution is not done when dealing with hql constraints against the "any" side -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Mikle F. (JIRA) <no...@at...> - 2006-06-27 08:48:00
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-957?page=comments#action_23426 ] Mikle Freeland commented on HHH-957: ------------------------------------ Still not fixed in hibernate 3.2.0 cr2 > SubqueryExpression throws ClassCastException on DetachedCriteria subqueries > --------------------------------------------------------------------------- > > Key: HHH-957 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-957 > Project: Hibernate3 > Type: Bug > Versions: 3.0.5 > Environment: Oracle 9i, but probably not DB specific. > Reporter: Rob MacGrogan > Priority: Minor > Attachments: SubqueryExpression.java, SubqueryExpression.java > > > The toSqlString() method in SubqueryExpression contains a line that casts a Criteria object to CriteriaImpl in order to call the getSession() method. However, if DetachedCriteria is used as a subquery in a Criteria query, the underlying Criteria object will be CriteriaImpl.Subcriteria, thus a ClassCastException will be thrown. > I have created a bug fix. Add the following method to SubqueryExpression: > private SessionImpl getSessionImpl(Criteria criteria) { > SessionImpl session = null; > if (criteria instanceof CriteriaImpl) { > CriteriaImpl impl = (CriteriaImpl)criteria; > session = impl.getSession(); > } > else if (criteria instanceof CriteriaImpl.Subcriteria){ > CriteriaImpl.Subcriteria sub = (CriteriaImpl.Subcriteria)criteria; > //Alert! Recursive call here! > session = getSessionImpl(sub.getParent()); > } > return session; > } > And then replace the offending line in toSqlString() with a call to the new method. > Attached is SubqueryExpression with proposed changes in place. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <no...@at...> - 2006-06-27 05:35:57
|
Support inheritance for value types in collection elements and components ------------------------------------------------------------------------- Key: HHH-1857 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH= -1857 Project: Hibernate3 Type: Improvement Components: core =20 Reporter: Hontv=C3=A1ri J=C3=B3zsef Priority: Minor it would be a natural extension to support inheritance hierarchies for coll= ection elements and components, similarly to the "table per class hierarchy= " mapping used for entity classes. The workaround is to use a user type, but this has the disadvantage that ei= ther the class must be "opened" (private fields or setters must become publ= ic) or reflection must be used. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <no...@at...> - 2006-06-27 05:23:58
|
Support final fields and non-empty constructors ----------------------------------------------- Key: HHH-1856 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH= -1856 Project: Hibernate3 Type: Improvement Components: core =20 Reporter: Hontv=C3=A1ri J=C3=B3zsef Priority: Minor Especially for value types it is a useful convention to define some fields = final. If the type is also used in a multithreaded context than this is eve= n required. Currently this is not possible if the class is used through Hib= ernate.=20 This feature requires Hibernate to use a constructor with arguments to load= an instance (instead of field access and/or setters), because final fields= MUST be initialized in the constructor. A side benefit is that Hibernate w= ill not (always) require an artifical no-argument constructor. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: mike p. (JIRA) <no...@at...> - 2006-06-27 02:01:18
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293?page=comments#action_23425 ] mike perham commented on HHH-1293: ---------------------------------- Max, the patch is basically just reversing the pluses and minuses in the patch attached to HHH-1103. I'm sure the fix is important but it's more important to us that our app actually work. For very specific reasons we cannot use the workarounds specified here so the binary is just another option for people if they are in the same situation. > java.lang.NoSuchMethodError: <persistent class>.getHibernateLazyInitializer() > ----------------------------------------------------------------------------- > > Key: HHH-1293 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293 > Project: Hibernate3 > Type: Bug > Versions: 3.1.1 > Reporter: Andreas Schildbach > Priority: Blocker > Attachments: hibernate3.jar, manysessions.tgz > > > As documented in > http://forum.hibernate.org/viewtopic.php?t=940119 > some people (including me) are getting this exception with the final release of Hibernate 3.1: > java.lang.NoSuchMethodError: de.schildbach.game.integration.HibernateGamePlayer.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer; > at de.schildbach.game.integration.HibernateGamePlayer$$EnhancerByCGLIB$$afecb986.getHibernateLazyInitializer(<generated>) > at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274) > at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177) > at org.hibernate.type.TypeFactory.assemble(TypeFactory.java:398) > at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:96) > at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:82) > at org.hibernate.event.def.DefaultLoadEventListener.assembleCacheEntry(DefaultLoadEventListener.java:520) > at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:474) > at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:328) > at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123) > at org.hibernate.event.def.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:202) > at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:169) > at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87) > at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:869) > at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:838) > at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266) > at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177) > at org.hibernate.collection.PersistentList.initializeFromCache(PersistentList.java:378) > at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35) > at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:130) > at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48) > at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1627) > at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344) > at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) > at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109) > at org.hibernate.collection.PersistentList.size(PersistentList.java:91) > The exception varies with the actual persistent class in use. Most people seem to be using JDK 1.5 and Linux. Some reports say that the exception does not happen from the very start of the application, but it takes "several invocations"/"some time" until it appear, but then it appears very often. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-26 23:47:59
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-348?page=comments#action_23424 ] Emmanuel Bernard commented on ANN-348: -------------------------------------- Your unit test works fine for me, are you sure that the logs are generated by the one you gave me? > @ManyToOne relation fails when using SINGLE_TABLE @Inheritance for referenced table that also has composite primary key > ----------------------------------------------------------------------------------------------------------------------- > > Key: ANN-348 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-348 > Project: Hibernate Annotations > Type: Bug > Versions: 3.2.0.cr1 > Environment: Hibernate Core 3.2.CR2 > Hibernate Annotations 3.2.0 CR1 > Hibernate EntityManager 3.2.0 CR1 > Reporter: Thomas Risberg > Attachments: ANN-348-src.zip > > > A @ManyToOne relation fails when using SINGLE_TABLE @Inheritance for referenced table that also has composite primary key. > I have attached a test case. > Here is the log output and stack trace: > 2006-05-26 23:44:48,901 INFO [org.hibernate.ejb.Version] - <Hibernate EntityManager 3.2.0.CR1> > 2006-05-26 23:44:48,998 INFO [org.hibernate.cfg.annotations.Version] - <Hibernate Annotations 3.2.0.CR1> > 2006-05-26 23:44:49,022 INFO [org.hibernate.cfg.Environment] - <Hibernate 3.2 cr2> > 2006-05-26 23:44:49,032 INFO [org.hibernate.cfg.Environment] - <hibernate.properties not found> > 2006-05-26 23:44:49,041 INFO [org.hibernate.cfg.Environment] - <Bytecode provider name : cglib> > 2006-05-26 23:44:49,065 INFO [org.hibernate.cfg.Environment] - <using JDK 1.4 java.sql.Timestamp handling> > 2006-05-26 23:44:49,377 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Trying to find persistence unit: JPATest> > 2006-05-26 23:44:49,378 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Analyse of persistence.xml: file:/Users/trisberg/Projects/JPATest2/classes/META-INF/persistence.xml> > 2006-05-26 23:44:49,568 DEBUG [org.hibernate.util.DTDEntityResolver] - <trying to resolve system-id [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd]> > 2006-05-26 23:44:49,570 DEBUG [org.hibernate.cfg.EJB3DTDEntityResolver] - <recognized EJB3 ORM namespace; attempting to resolve on classpath under org/hibernate/ejb> > 2006-05-26 23:44:49,619 DEBUG [org.hibernate.cfg.EJB3DTDEntityResolver] - <located [http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd] in classpath> > 2006-05-26 23:44:49,773 DEBUG [org.hibernate.ejb.packaging.PersistenceXmlLoader] - <Persistent Unit name from persistence.xml: JPATest> > 2006-05-26 23:44:49,782 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Detect class: true; detect hbm: true> > 2006-05-26 23:44:49,795 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Archive to be processed by hibernate Entity Manager implementation found> > 2006-05-26 23:44:49,805 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Searching mapped entities in jar/par: file:/Users/trisberg/Projects/JPATest2/classes> > 2006-05-26 23:44:49,806 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Persistence unit name: JPATest> > 2006-05-26 23:44:49,807 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <emname:JPATest metadata: JPATest> > 2006-05-26 23:44:49,808 FATAL [org.hibernate.ejb.Ejb3Configuration] - <commons-logging.propertiesO-:-Ofalse> > 2006-05-26 23:44:49,809 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.Item> > 2006-05-26 23:44:50,053 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element filter matched for jpatest.Item> > 2006-05-26 23:44:50,057 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.ItemStatus> > 2006-05-26 23:44:50,069 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element filter matched for jpatest.ItemStatus> > 2006-05-26 23:44:50,070 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.ItemStatusPK> > 2006-05-26 23:44:50,072 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.NonTaxableOrderLine> > 2006-05-26 23:44:50,073 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element filter matched for jpatest.NonTaxableOrderLine> > 2006-05-26 23:44:50,074 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.Order> > 2006-05-26 23:44:50,077 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element filter matched for jpatest.Order> > 2006-05-26 23:44:50,078 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.OrderLine> > 2006-05-26 23:44:50,082 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element filter matched for jpatest.OrderLine> > 2006-05-26 23:44:50,083 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.OrderLinePK> > 2006-05-26 23:44:50,085 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: jpatest.TaxableOrderLine> > 2006-05-26 23:44:50,088 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Java element filter matched for jpatest.TaxableOrderLine> > 2006-05-26 23:44:50,089 FATAL [org.hibernate.ejb.Ejb3Configuration] - <log4j.propertiesO-:-Ofalse> > 2006-05-26 23:44:50,093 FATAL [org.hibernate.ejb.Ejb3Configuration] - <META-INF/persistence.xmlO-:-Ofalse> > 2006-05-26 23:44:50,094 DEBUG [org.hibernate.ejb.packaging.JarVisitor] - <Filtering: Test> > 2006-05-26 23:44:50,098 DEBUG [org.hibernate.ejb.Ejb3Configuration] - <Creating Factory: JPATest> > 2006-05-26 23:44:50,246 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <Execute first pass mapping processing> > 2006-05-26 23:44:50,606 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <Process hbm files> > 2006-05-26 23:44:50,608 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <Process annotated classes> > 2006-05-26 23:44:50,619 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity from annotated class: jpatest.Order> > 2006-05-26 23:44:50,674 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column DTYPE unique false> > 2006-05-26 23:44:50,703 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import with entity name=Order> > 2006-05-26 23:44:50,720 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind entity jpatest.Order on table ORDERS> > 2006-05-26 23:44:50,757 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.Order property annotation> > 2006-05-26 23:44:50,802 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.Order field annotation> > 2006-05-26 23:44:50,917 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.Order.orderId> > 2006-05-26 23:44:50,932 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId unique false> > 2006-05-26 23:44:50,933 DEBUG [org.hibernate.cfg.AnnotationBinder] - <orderId is an id> > 2006-05-26 23:44:50,938 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for orderId> > 2006-05-26 23:44:50,952 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderId> > 2006-05-26 23:44:50,999 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderId with null> > 2006-05-26 23:44:50,999 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Bind @Id on orderId> > 2006-05-26 23:44:51,000 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.Order.ordeDate> > 2006-05-26 23:44:51,000 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ordeDate unique false> > 2006-05-26 23:44:51,001 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property ordeDate with lazy=false> > 2006-05-26 23:44:51,003 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for ordeDate> > 2006-05-26 23:44:51,004 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property ordeDate> > 2006-05-26 23:44:51,004 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading ordeDate with null> > 2006-05-26 23:44:51,005 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.Order.orderLines> > 2006-05-26 23:44:51,008 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,009 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderLines unique false> > 2006-05-26 23:44:51,013 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,049 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column element unique false> > 2006-05-26 23:44:51,051 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column key unique false> > 2006-05-26 23:44:51,052 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,063 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,064 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,068 DEBUG [org.hibernate.cfg.annotations.CollectionBinder] - <Collection role: jpatest.Order.orderLines> > 2006-05-26 23:44:51,077 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderLines> > 2006-05-26 23:44:51,078 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderLines with none> > 2006-05-26 23:44:51,082 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity from annotated class: jpatest.OrderLine> > 2006-05-26 23:44:51,083 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column linetype unique false> > 2006-05-26 23:44:51,084 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import with entity name=OrderLine> > 2006-05-26 23:44:51,084 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind entity jpatest.OrderLine on table OrderLine> > 2006-05-26 23:44:51,085 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Setting discriminator for entity jpatest.OrderLine> > 2006-05-26 23:44:51,380 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.OrderLine property annotation> > 2006-05-26 23:44:51,383 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.OrderLine field annotation> > 2006-05-26 23:44:51,409 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding component with path: jpatest.OrderLine.id> > 2006-05-26 23:44:51,413 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.OrderLinePK field annotation> > 2006-05-26 23:44:51,415 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.OrderLinePK.orderId> > 2006-05-26 23:44:51,416 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId unique false> > 2006-05-26 23:44:51,417 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property orderId with lazy=false> > 2006-05-26 23:44:51,417 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for orderId> > 2006-05-26 23:44:51,417 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderId> > 2006-05-26 23:44:51,418 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderId with null> > 2006-05-26 23:44:51,418 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.OrderLinePK.lineNo> > 2006-05-26 23:44:51,419 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo unique false> > 2006-05-26 23:44:51,419 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property lineNo with lazy=false> > 2006-05-26 23:44:51,420 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for lineNo> > 2006-05-26 23:44:51,420 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property lineNo> > 2006-05-26 23:44:51,420 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading lineNo with null> > 2006-05-26 23:44:51,421 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding component with path: jpatest.OrderLine._identifierMapper> > 2006-05-26 23:44:51,421 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.OrderLine field annotation> > 2006-05-26 23:44:51,422 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.OrderLine.orderId> > 2006-05-26 23:44:51,422 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId unique false> > 2006-05-26 23:44:51,422 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property orderId with lazy=false> > 2006-05-26 23:44:51,423 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for orderId> > 2006-05-26 23:44:51,428 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderId> > 2006-05-26 23:44:51,428 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderId with null> > 2006-05-26 23:44:51,429 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.OrderLine.lineNo> > 2006-05-26 23:44:51,430 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo unique false> > 2006-05-26 23:44:51,431 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property lineNo with lazy=false> > 2006-05-26 23:44:51,431 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for lineNo> > 2006-05-26 23:44:51,432 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property lineNo> > 2006-05-26 23:44:51,432 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading lineNo with null> > 2006-05-26 23:44:51,432 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.OrderLine.order> > 2006-05-26 23:44:51,433 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ORDERID unique false> > 2006-05-26 23:44:51,433 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column order unique false> > 2006-05-26 23:44:51,444 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property order> > 2006-05-26 23:44:51,445 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading order with none> > 2006-05-26 23:44:51,446 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.OrderLine.itemStati> > 2006-05-26 23:44:51,446 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,449 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column itemStati unique false> > 2006-05-26 23:44:51,450 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,450 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column element unique false> > 2006-05-26 23:44:51,450 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column key unique false> > 2006-05-26 23:44:51,451 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,451 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,451 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column null unique false> > 2006-05-26 23:44:51,452 DEBUG [org.hibernate.cfg.annotations.CollectionBinder] - <Collection role: jpatest.OrderLine.itemStati> > 2006-05-26 23:44:51,452 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property itemStati> > 2006-05-26 23:44:51,452 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading itemStati with none> > 2006-05-26 23:44:51,453 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity from annotated class: jpatest.TaxableOrderLine> > 2006-05-26 23:44:51,455 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import with entity name=TaxableOrderLine> > 2006-05-26 23:44:51,492 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.TaxableOrderLine field annotation> > 2006-05-26 23:44:51,498 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.TaxableOrderLine.rate> > 2006-05-26 23:44:51,499 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column rate unique false> > 2006-05-26 23:44:51,499 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property rate with lazy=false> > 2006-05-26 23:44:51,500 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for rate> > 2006-05-26 23:44:51,500 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property rate> > 2006-05-26 23:44:51,500 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading rate with null> > 2006-05-26 23:44:51,501 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity from annotated class: jpatest.NonTaxableOrderLine> > 2006-05-26 23:44:51,501 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import with entity name=NonTaxableOrderLine> > 2006-05-26 23:44:51,502 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.NonTaxableOrderLine field annotation> > 2006-05-26 23:44:51,503 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity from annotated class: jpatest.Item> > 2006-05-26 23:44:51,503 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column DTYPE unique false> > 2006-05-26 23:44:51,506 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import with entity name=Item> > 2006-05-26 23:44:51,507 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind entity jpatest.Item on table Item> > 2006-05-26 23:44:51,507 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.Item property annotation> > 2006-05-26 23:44:51,508 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.Item field annotation> > 2006-05-26 23:44:51,512 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.Item.itemId> > 2006-05-26 23:44:51,513 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column itemId unique false> > 2006-05-26 23:44:51,513 DEBUG [org.hibernate.cfg.AnnotationBinder] - <itemId is an id> > 2006-05-26 23:44:51,513 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for itemId> > 2006-05-26 23:44:51,514 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property itemId> > 2006-05-26 23:44:51,514 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading itemId with null> > 2006-05-26 23:44:51,514 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Bind @Id on itemId> > 2006-05-26 23:44:51,515 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.Item.desccription> > 2006-05-26 23:44:51,515 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column desccription unique false> > 2006-05-26 23:44:51,516 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property desccription with lazy=false> > 2006-05-26 23:44:51,517 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for desccription> > 2006-05-26 23:44:51,517 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property desccription> > 2006-05-26 23:44:51,517 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading desccription with null> > 2006-05-26 23:44:51,518 INFO [org.hibernate.cfg.AnnotationBinder] - <Binding entity from annotated class: jpatest.ItemStatus> > 2006-05-26 23:44:51,522 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column DTYPE unique false> > 2006-05-26 23:44:51,525 DEBUG [org.hibernate.cfg.annotations.EntityBinder] - <Import with entity name=ItemStatus> > 2006-05-26 23:44:51,526 INFO [org.hibernate.cfg.annotations.EntityBinder] - <Bind entity jpatest.ItemStatus on table ItemStatus> > 2006-05-26 23:44:51,527 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.ItemStatus property annotation> > 2006-05-26 23:44:51,528 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.ItemStatus field annotation> > 2006-05-26 23:44:51,544 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding component with path: jpatest.ItemStatus.id> > 2006-05-26 23:44:51,545 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.ItemStatusPK field annotation> > 2006-05-26 23:44:51,546 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatusPK.orderId> > 2006-05-26 23:44:51,547 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId unique false> > 2006-05-26 23:44:51,547 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property orderId with lazy=false> > 2006-05-26 23:44:51,549 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for orderId> > 2006-05-26 23:44:51,549 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderId> > 2006-05-26 23:44:51,549 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderId with null> > 2006-05-26 23:44:51,550 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatusPK.lineNo> > 2006-05-26 23:44:51,550 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo unique false> > 2006-05-26 23:44:51,551 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property lineNo with lazy=false> > 2006-05-26 23:44:51,551 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for lineNo> > 2006-05-26 23:44:51,551 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property lineNo> > 2006-05-26 23:44:51,552 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading lineNo with null> > 2006-05-26 23:44:51,552 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatusPK.statusTime> > 2006-05-26 23:44:51,552 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column statusTime unique false> > 2006-05-26 23:44:51,553 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property statusTime with lazy=false> > 2006-05-26 23:44:51,553 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for statusTime> > 2006-05-26 23:44:51,554 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property statusTime> > 2006-05-26 23:44:51,554 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading statusTime with null> > 2006-05-26 23:44:51,554 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Binding component with path: jpatest.ItemStatus._identifierMapper> > 2006-05-26 23:44:51,555 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing jpatest.ItemStatus field annotation> > 2006-05-26 23:44:51,557 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatus.orderId> > 2006-05-26 23:44:51,558 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderId unique false> > 2006-05-26 23:44:51,558 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property orderId with lazy=false> > 2006-05-26 23:44:51,558 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for orderId> > 2006-05-26 23:44:51,559 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderId> > 2006-05-26 23:44:51,559 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderId with null> > 2006-05-26 23:44:51,559 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatus.lineNo> > 2006-05-26 23:44:51,560 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column lineNo unique false> > 2006-05-26 23:44:51,570 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property lineNo with lazy=false> > 2006-05-26 23:44:51,570 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for lineNo> > 2006-05-26 23:44:51,571 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property lineNo> > 2006-05-26 23:44:51,571 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading lineNo with null> > 2006-05-26 23:44:51,572 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatus.statusTime> > 2006-05-26 23:44:51,572 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column statusTime unique false> > 2006-05-26 23:44:51,572 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property statusTime with lazy=false> > 2006-05-26 23:44:51,573 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for statusTime> > 2006-05-26 23:44:51,573 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property statusTime> > 2006-05-26 23:44:51,574 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading statusTime with null> > 2006-05-26 23:44:51,574 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatus.orderLine> > 2006-05-26 23:44:51,575 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ORDERID unique false> > 2006-05-26 23:44:51,577 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column LINENO unique false> > 2006-05-26 23:44:51,578 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column orderLine unique false> > 2006-05-26 23:44:51,579 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property orderLine> > 2006-05-26 23:44:51,579 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading orderLine with none> > 2006-05-26 23:44:51,579 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatus.item> > 2006-05-26 23:44:51,580 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column ITEMID unique false> > 2006-05-26 23:44:51,581 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column item unique false> > 2006-05-26 23:44:51,670 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property item> > 2006-05-26 23:44:51,671 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading item with none> > 2006-05-26 23:44:51,671 DEBUG [org.hibernate.cfg.AnnotationBinder] - <Processing annotations of jpatest.ItemStatus.quantity> > 2006-05-26 23:44:51,672 DEBUG [org.hibernate.cfg.Ejb3Column] - <Binding column quantity unique false> > 2006-05-26 23:44:51,672 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <binding property quantity with lazy=false> > 2006-05-26 23:44:51,672 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] - <building SimpleValue for quantity> > 2006-05-26 23:44:51,673 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Building property quantity> > 2006-05-26 23:44:51,673 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] - <Cascading quantity with null> > 2006-05-26 23:44:51,673 DEBUG [org.hibernate.cfg.AnnotationConfiguration] - <processing manytoone fk mappings> > Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in JoinColumns.referencedColumnName > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:217) > at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) > at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) > at Test.main(Test.java:17) > Caused by: org.hibernate.AnnotationException: Column name orderId of jpatest.OrderLine not found in JoinColumns.referencedColumnName > at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:297) > at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:45) > at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:288) > at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1034) > at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1015) > at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154) > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:751) > at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) > ... 3 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-26 23:12:00
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-243?page=all ] Emmanuel Bernard resolved ANN-243: ---------------------------------- Fix Version: 3.2.0 Resolution: Fixed This is fixed, but will fail on MySQL and SQLServer due to the quote specialization they have. I do not know the dialect when I build the link. > @MapKey doesn't properly refer to column name mapped to property (quoted column) > -------------------------------------------------------------------------------- > > Key: ANN-243 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-243 > Project: Hibernate Annotations > Type: Bug > Components: binder > Versions: 3.1beta8 > Reporter: Eric De Prez > Assignee: Emmanuel Bernard > Priority: Minor > Fix For: 3.2.0 > > > Generated query discards quotes when mapping property with @MapKey. > please have a look on the hibernate forum for details http://forum.hibernate.org/viewtopic.php?p=2290535#2290535 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-26 22:23:59
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-314?pa= ge=3Dall ] =20 Emmanuel Bernard resolved ANN-314: ---------------------------------- Resolution: Rejected you misunderstood polymorphism. polymorphism explicit only applies on root entities and prevent queries nam= ing a (unmapped) superclass to return mapped sub entities if your case if ObjectA were not mapped and ObjectB were having polymorphis= m explicit, then from ObjectA would not return ObjectB elements > Problem with PolymorphismType.EXPLICIT > -------------------------------------- > > Key: ANN-314 > URL: http://opensource.atlassian.com/projects/hibernate/browse/A= NN-314 > Project: Hibernate Annotations > Type: Bug > Versions: 3.1beta7 > Reporter: =C3=81lvaro Queiroz Valente > > > @Entity(access =3D AccessType.FIELD) > @org.hibernate.annotations.Entity(polymorphism =3D PolymorphismType.EXPLI= CIT) > @Table(name =3D "TableA") > @Inheritance(strategy =3D InheritanceType.TABLE_PER_CLASS) > public class ObjectA{ > @Entity(access =3D AccessType.FIELD) > @Table(name =3D "TableB") > public class ObjectB extends ObjectA{=20 > When we call ObjectA ("findByKey") the Hibernate always use select union = with TableB, but the expect is select only TableA , because we use polymorp= hism =3D PolymorphismType.EXPLICIT. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators= .jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-26 21:27:00
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-298?page=comments#action_23421 ] Emmanuel Bernard commented on ANN-298: -------------------------------------- I run the following test on the domain model you gave me but I can't reproduce the issue on the latest version. If you can attach a simple reproducable test case I'll have a second look at it. I create a graph and execute the delete operation using Card card = new Card(); AuthenticAccountMiniStatement s = new AuthenticAccountMiniStatement(); AuthenticAccount acc = new AuthenticAccount(); card.setAccount( acc ); acc.setCard( card ); acc.setAccountNumber( "RERE"); acc.addMiniStatement( s ); Session session = openSession(); Transaction tx = session.beginTransaction(); session.save(acc); session.flush(); session.clear(); acc = (AuthenticAccount) session.get(AuthenticAccount.class, acc.getId() ); session.delete( acc ); //acc.removeMiniStatement( acc.getMiniStatements().get(0) ); session.flush(); tx.rollback(); session.close(); > ClassCastExcepton: java.lang.Long at org.hibernate.type.ComponentType.toLoggableString > -------------------------------------------------------------------------------------- > > Key: ANN-298 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-298 > Project: Hibernate Annotations > Type: Bug > Environment: JBoss 4.0..3 EJB3-RC5 > Hibernate 3.1.2 > Reporter: Steven Verze > > > When loging is set the INFO I get the following exception: > javax.ejb.EJBException: java.lang.ClassCastException: java.lang.Long > at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) > at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) > at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:219) > at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107) > at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) > at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:580) > at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:450) > at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290) > at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344) > at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202) > Caused by: java.lang.ClassCastException: java.lang.Long > at org.hibernate.type.ComponentType.toLoggableString(ComponentType.java:329) > at org.hibernate.pretty.MessageHelper.collectionInfoString(MessageHelper.java:187) > at org.hibernate.event.def.ReattachVisitor.removeCollection(ReattachVisitor.java:60) > at org.hibernate.event.def.OnUpdateVisitor.processCollection(OnUpdateVisitor.java:46) > at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101) > at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:61) > at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55) > at org.hibernate.event.def.AbstractVisitor.process(AbstractVisitor.java:123) > at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:72) > at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:790) > at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:768) > at org.hibernate.ejb.AbstractEntityManagerImpl.remove(AbstractEntityManagerImpl.java:155) > at org.jboss.ejb3.entity.InjectedEntityManager.remove(InjectedEntityManager.java:151) > at com.teleglobal.modules.authentic.services.AuthenticAccountServiceBean.remove(AuthenticAccountServiceBean.java:99) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109) > at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) > at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:219) > at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107) > at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) > at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:580) > at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:450) > at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:290) > at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:344) > at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:202) > at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:163) > at org.jboss.remoting.Client.invoke(Client.java:258) > at org.jboss.remoting.Client.invoke(Client.java:221) > at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65) > at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98) > at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102) > at $Proxy1.remove(Unknown Source) > at com.teleglobal.modules.authentic.servcies.AuthenticAccountServiceTest.tearDown(AuthenticAccountServiceTest.java:23) > at junit.framework.TestCase.runBare(TestCase.java:130) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) > at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) > The problem goes away when I turn logging down to WARN. > I noticed that there was a similar bug (HHH-248) which was fixed in version 3.0.2 > This exception really only occured when I used ManyToOne relationship using the referencedColumnName attribute and only when I tried to remove AuthenticAccount . > My entities follow: > @Entity > @Table(name="ACCOUNT") > @SequenceGenerator(name="ACCOUNT_SEQUENCE", sequenceName="ACCOUNT_SEQUENCE") > public class AuthenticAccount implements Serializable > { > @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ACCOUNT_SEQUENCE") > @Column(name="ACN_ID") > private long id; > @Column(name="ACN_ACCOUNT_NUMBER", unique=true) > private String accountNumber; > // Default values for all authentic test accounts > @Column(name="ACN_BALANCE_1") > private long balance1 = 5000; > @Column(name="ACN_STATUS") > private String status = "O"; > @Column(name="ACN_PRO_ID") > private String proId = "11014"; > @Column(name="ACN_CUR_ID") > private long curId = 826; > @Column(name="ACN_AMT_ID_1") > private long amountId1 = 2; > @Column(name="ACN_AMT_ID_2") > private long amountId2 = 1; > @Column(name="ACN_BALANCE_2") > private long balance2 = 0; > @Column(name="ACN_LAST_BATCH_UPDATE_DATE") > private Date lastBatchUpdateDate; > @Column(name="ACN_LAST_FEP_HOST_TRACE_NBR") > private long lastFepHostTraceNumber = 0; > @Column(name="ACN_LAST_HOST_FEP_TRACE_NBR") > private long lastHostFepTraceNumber = 118; > @Column(name="ACN_BILL_PAYMENT_FLG") > private int billPaymentFlag = 1; > @Column(name="ACN_TRANSFER_FLG") > private int transferFlag = 0; > @Column(name="ACN_FUNCTIONS") > private int functions = 1; > @Column(name="ACN_FEP_HOST_SUM") > private long fepHostSum = 110; > @Column(name="ACN_HOST_FEP_SUM") > private long hostFepSum = 811233; > @OneToOne(mappedBy="account", cascade=CascadeType.ALL, fetch=FetchType.EAGER) > private Card card; > @OneToMany(mappedBy="account", cascade=CascadeType.ALL, fetch=FetchType.EAGER) > @JoinColumn(name="AMS_ACCOUNT_NUM", referencedColumnName="ACN_ACCOUNT_NUMBER", nullable = false, unique = true) > private List<AuthenticAccountMiniStatement> miniStatements; > > public AuthenticAccount() > { > lastBatchUpdateDate = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a") > .parse("09/06/2005 12:00:00 AM", new ParsePosition(0)); > card = new Card(); > miniStatements = new ArrayList<AuthenticAccountMiniStatement>(); > } > public String getAccountNumber() > { > return accountNumber; > } > public void setAccountNumber(String accountNumber) > { > this.accountNumber = accountNumber; > } > public long getAmountId1() > { > return amountId1; > } > public void setAmountId1(long amountId1) > { > this.amountId1 = amountId1; > } > public long getAmountId2() > { > return amountId2; > } > public void setAmountId2(long amountId2) > { > this.amountId2 = amountId2; > } > public long getBalance1() > { > return balance1; > } > public void setBalance1(long balance1) > { > this.balance1 = balance1; > } > public long getBalance2() > { > return balance2; > } > public void setBalance2(long balance2) > { > this.balance2 = balance2; > } > public int getBillPaymentFlag() > { > return billPaymentFlag; > } > public void setBillPaymentFlag(int billPaymentFlag) > { > this.billPaymentFlag = billPaymentFlag; > } > public long getCurId() > { > return curId; > } > public void setCurId(long curId) > { > this.curId = curId; > } > public long getFepHostSum() > { > return fepHostSum; > } > public void setFepHostSum(long fepHostSum) > { > this.fepHostSum = fepHostSum; > } > public int getFunctions() > { > return functions; > } > public void setFunctions(int functions) > { > this.functions = functions; > } > public long getHostFepSum() > { > return hostFepSum; > } > public void setHostFepSum(long hostFepSum) > { > this.hostFepSum = hostFepSum; > } > public long getId() > { > return id; > } > public void setId(long id) > { > this.id = id; > } > public Date getLastBatchUpdateDate() > { > return lastBatchUpdateDate; > } > public void setLastBatchUpdateDate(Date lastBatchUpdateDate) > { > this.lastBatchUpdateDate = lastBatchUpdateDate; > } > public long getLastFepHostTraceNumber() > { > return lastFepHostTraceNumber; > } > public void setLastFepHostTraceNumber(long lastFepHostTraceNumber) > { > this.lastFepHostTraceNumber = lastFepHostTraceNumber; > } > public long getLastHostFepTraceNumber() > { > return lastHostFepTraceNumber; > } > public void setLastHostFepTraceNumber(long lastHostFepTraceNumber) > { > this.lastHostFepTraceNumber = lastHostFepTraceNumber; > } > public String getProId() > { > return proId; > } > public void setProId(String proId) > { > this.proId = proId; > } > public String getStatus() > { > return status; > } > public void setStatus(String status) > { > this.status = status; > } > public int getTransferFlag() > { > return transferFlag; > } > public void setTransferFlag(int transferFlag) > { > this.transferFlag = transferFlag; > } > public Card getCard() > { > return card; > } > public void setCard(Card card) > { > this.card = card; > } > > public void addMiniStatement(AuthenticAccountMiniStatement miniStatement) > { > miniStatement.setAccount(this); > this.miniStatements.add(miniStatement); > } > > public void removeMiniStatement(AuthenticAccountMiniStatement miniStatement) > { > this.miniStatements.remove(miniStatement); > } > public List<AuthenticAccountMiniStatement> getMiniStatements() > { > return miniStatements; > } > public void setMiniStatements(List<AuthenticAccountMiniStatement> miniStatements) > { > this.miniStatements = miniStatements; > } > } > @Entity > @Table(name = "ACCOUNT_MINI_STATEMENT") > @SequenceGenerator(name="MINI_STATEMENT_SEQUENCE", sequenceName="MINI_STATEMENT_SEQUENCE") > public class AuthenticAccountMiniStatement implements Serializable > { > @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="MINI_STATEMENT_SEQUENCE") > @Column(name="AMS_TXN_SEQ") > private long id; > @Column(name="AMS_TXN_CODE") > private String transactionDescription = "LOAD"; > @Column(name="AMS_TXN_DATE") > private Date transactionDate = new Date(); > @Column(name="AMS_TXN_AMOUNT") > private long transactionAmount = 10; > @Column(name="AMS_TRL_BUSINESS_DATE") > private Date transactionLogBusinessDate = new Date(); > @Column(name="AMS_TRL_ID") > private long transactionLogId = 34610; > @Column(name="AMS_GRP_SEQ") > private long groupSequence = 1; > @ManyToOne(fetch=FetchType.EAGER) > @JoinColumn(name="AMS_ACCOUNT_NUM", referencedColumnName="ACN_ACCOUNT_NUMBER", nullable = false, unique = true) > private AuthenticAccount account; > > public AuthenticAccountMiniStatement() > { > } > > public long getTransactionAmount() > { > return transactionAmount; > } > > public void setTransactionAmount(long transactionAmount) > { > this.transactionAmount = transactionAmount; > } > > public Date getTransactionDate() > { > return transactionDate; > } > > public void setTransactionDate(Date transactionDate) > { > this.transactionDate = transactionDate; > } > > public String getTransactionDescription() > { > return transactionDescription; > } > > public void setTransactionDescription(String transactionDescription) > { > this.transactionDescription = transactionDescription; > } > > public long getGroupSequence() > { > return groupSequence; > } > > public void setGroupSequence(long groupSequence) > { > this.groupSequence = groupSequence; > } > > public long getId() > { > return id; > } > > public void setId(long id) > { > this.id = id; > } > > public Date getTransactionLogBusinessDate() > { > return transactionLogBusinessDate; > } > > public void setTransactionLogBusinessDate(Date transactionLogBusinessDate) > { > this.transactionLogBusinessDate = transactionLogBusinessDate; > } > > public long getTransactionLogId() > { > return transactionLogId; > } > > public void setTransactionLogId(long transactionLogId) > { > this.transactionLogId = transactionLogId; > } > public AuthenticAccount getAccount() > { > return account; > } > public void setAccount(AuthenticAccount account) > { > this.account = account; > } > } > @Entity > @Table(name="CARD") > @SequenceGenerator(name="CARD_SEQUENCE", sequenceName="CARD_SEQUENCE") > public class Card implements Serializable > { > @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CARD_SEQUENCE") > @Column(name="CRD_ID") > private long id; > @Column(name="CRD_PAN") > private String primaryAccountNumber; > @Column(name="CRD_STATUS_1") > private String status1 = "A"; > @Column(name="CRD_CURRENT_PVV") > private long currentPvv = 0; > @Column(name="CRD_PIN_RETRY_COUNT") > private long pinRetryCount = 0; > @Column(name="CRD_CUSTOM_INDEX_1") > private String customIndex1 = "GC"; > // Default values for all authentic test cards > @Column(name="CRD_CARD_SEQUENCE_NBR") > private long cardSequenceNumber = 0; > @Column(name="CRD_CPD_ID") > private long cpdId = 250; > @Column(name="CRD_LAST_SOURCE") > private String lastSource = "U"; > @Column(name="CRD_FUNCTIONS") > private int functions = 1; > @Column(name="CRD_CURRENT_PIN_OFFSET") > private String currentPinOffset = "0"; > @Column(name="CRD_ISSUE_DATE_1") > private Date issueDate1; > @Column(name="CRD_EXPIRY_DATE_1") > private Date expiryDate1; > @Column(name="CRD_EXPIRY_DATE_2") > private Date expiryDate2; > @Column(name="CRD_STATUS_1_DATE") > private Date status1Date; > @ManyToOne(fetch=FetchType.EAGER) > @JoinColumn(name="CRD_PRIMARY_ACN_ID", nullable=false, unique=true) > private AuthenticAccount account; > public Card() > { > this.issueDate1 = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a").parse("09/06/2005 12:00:00 AM", new ParsePosition(0)); > this.expiryDate1 = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a").parse("01/06/2015 12:00:00 AM", new ParsePosition(0)); > this.expiryDate2 = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a").parse("01/06/2015 12:00:00 AM", new ParsePosition(0)); > this.status1Date = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a").parse("09/06/2005 12:00:00 AM", new ParsePosition(0)); > } > public String getPrimaryAccountNumber() > { > return primaryAccountNumber; > } > public void setPrimaryAccountNumber(String primaryAccountNumber) > { > this.primaryAccountNumber = primaryAccountNumber; > } > public long getCpdId() > { > return cpdId; > } > public void setCpdId(long cpdId) > { > this.cpdId = cpdId; > } > public String getCurrentPinOffset() > { > return currentPinOffset; > } > public void setCurrentPinOffset(String currentPinOffset) > { > this.currentPinOffset = currentPinOffset; > } > public long getCurrentPvv() > { > return currentPvv; > } > public void setCurrentPvv(long currentPvv) > { > this.currentPvv = currentPvv; > } > public String getCustomIndex1() > { > return customIndex1; > } > public void setCustomIndex1(String customIndex1) > { > this.customIndex1 = customIndex1; > } > public Date getExpiryDate1() > { > return expiryDate1; > } > public void setExpiryDate1(Date expiryDate1) > { > this.expiryDate1 = expiryDate1; > } > public Date getExpiryDate2() > { > return expiryDate2; > } > public void setExpiryDate2(Date expiryDate2) > { > this.expiryDate2 = expiryDate2; > } > public int getFunctions() > { > return functions; > } > public void setFunctions(int functions) > { > this.functions = functions; > } > public long getId() > { > return id; > } > public void setId(long id) > { > this.id = id; > } > public Date getIssueDate1() > { > return issueDate1; > } > public void setIssueDate1(Date issueDate1) > { > this.issueDate1 = issueDate1; > } > public String getLastSource() > { > return lastSource; > } > public void setLastSource(String lastSource) > { > this.lastSource = lastSource; > } > public long getPinRetryCount() > { > return pinRetryCount; > } > public void setPinRetryCount(long pinRetryCount) > { > this.pinRetryCount = pinRetryCount; > } > public long getCardSequenceNumber() > { > return cardSequenceNumber; > } > public void setCardSequenceNumber(long cardSequenceNumber) > { > this.cardSequenceNumber = cardSequenceNumber; > } > public String getStatus1() > { > return status1; > } > public void setStatus1(String status1) > { > this.status1 = status1; > } > public Date getStatus1Date() > { > return status1Date; > } > public void setStatus1Date(Date status1Date) > { > this.status1Date = status1Date; > } > public AuthenticAccount getAccount() > { > return account; > } > public void setAccount(AuthenticAccount account) > { > this.account = account; > } > } > Further more, when I try to remove an AUthentic entity (with logging set to WARN), I find that the AuthenticMiniStatements > are not removed. This probably should be raised as another bug. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve E. (JIRA) <no...@at...> - 2006-06-26 20:08:10
|
booleans not properly handled in assignment clause of UPDATE statements ----------------------------------------------------------------------- Key: HHH-1855 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1855 Project: Hibernate3 Type: Bug Components: query-hql Reporter: Steve Ebersole Assigned to: Steve Ebersole Fix For: 3.2.0 booleans, either as literals or as parameters, are not properly handled when encountered in the assignment (SET) clause of UPDATE statements. Specifically, they are not treated as the "correct" type. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Max R. A. (JIRA) <no...@at...> - 2006-06-26 18:10:21
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293?page=comments#action_23419 ] Max Rydahl Andersen commented on HHH-1293: ------------------------------------------ why did you attach a binary jar ? a patch would be much more sensible. btw. HHH-1103 is a rather cricital patch memory/performance wise so its really annoying that linux jdk is affected by this :( > java.lang.NoSuchMethodError: <persistent class>.getHibernateLazyInitializer() > ----------------------------------------------------------------------------- > > Key: HHH-1293 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293 > Project: Hibernate3 > Type: Bug > Versions: 3.1.1 > Reporter: Andreas Schildbach > Priority: Blocker > Attachments: hibernate3.jar, manysessions.tgz > > > As documented in > http://forum.hibernate.org/viewtopic.php?t=940119 > some people (including me) are getting this exception with the final release of Hibernate 3.1: > java.lang.NoSuchMethodError: de.schildbach.game.integration.HibernateGamePlayer.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer; > at de.schildbach.game.integration.HibernateGamePlayer$$EnhancerByCGLIB$$afecb986.getHibernateLazyInitializer(<generated>) > at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274) > at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177) > at org.hibernate.type.TypeFactory.assemble(TypeFactory.java:398) > at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:96) > at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:82) > at org.hibernate.event.def.DefaultLoadEventListener.assembleCacheEntry(DefaultLoadEventListener.java:520) > at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:474) > at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:328) > at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123) > at org.hibernate.event.def.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:202) > at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:169) > at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87) > at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:869) > at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:838) > at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266) > at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177) > at org.hibernate.collection.PersistentList.initializeFromCache(PersistentList.java:378) > at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35) > at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:130) > at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48) > at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1627) > at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344) > at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) > at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109) > at org.hibernate.collection.PersistentList.size(PersistentList.java:91) > The exception varies with the actual persistent class in use. Most people seem to be using JDK 1.5 and Linux. Some reports say that the exception does not happen from the very start of the application, but it takes "several invocations"/"some time" until it appear, but then it appears very often. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve E. (JIRA) <no...@at...> - 2006-06-26 17:41:58
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1236?page=comments#action_23418 ] Steve Ebersole commented on HHH-1236: ------------------------------------- First, all these comments are visible to all jira users anyway... Since you are a moral lecturer, I assume you have heard the phrase "give a man a fish, he eats for a day; teach a man to fish, he eats for a lifetime". It is not my job nor inclination to give someone an answer. That does not help them in the long run (besides, this is *not* a help forum); nor does it help them understand the issue at hand anyway. And where did I ever say that "saving my valuable time" was the motivation for anything? > Remove static reference to classloader, to avoid memory leak at webapp reload > ----------------------------------------------------------------------------- > > Key: HHH-1236 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1236 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.0.5 > Environment: Resin 3.0.15, CGLib 2.1_3 > Reporter: Mattias Jiderhamn > Assignee: Steve Ebersole > Fix For: 3.2.0.alpha1, 3.1.3 > Attachments: OptimizeIt.jpg > > > To avoid memory leaks when web applications reload, please either remove reference to classloader in org.hibernate.util.DTDEntityResolver or remove static reference to that class in org.hibernate.util.XMLHelper > For background information, please see > http://forum.hibernate.org/viewtopic.php?p=2275217#2275217 > http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 > and attached screen shot -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-26 16:56:58
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-380?page=comments#action_23416 ] Emmanuel Bernard commented on ANN-380: -------------------------------------- can you give the context of this error? What query is offending > Need more info about error place > -------------------------------- > > Key: ANN-380 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-380 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Versions: 3.2.0.cr1 > Environment: Version Hibernate EntityManager 3.2.0.CR1 > Version Hibernate Annotations 3.2.0.CR1 > Environment Hibernate 3.2 cr2 > Reporter: Sergey Vladimirov > > > Need more info where error occured. For example, query name. > java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode > \-[IDENT] IdentNode: 'user' {originalText=user} > at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145) > at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:714) > at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:538) > at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645) > at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281) > at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229) > at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228) > at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) > at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) > at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77) > at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56) > at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) > at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:400) > at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:351) > at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218) > at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:630) > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:759) > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:626) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Sergey V. (JIRA) <no...@at...> - 2006-06-26 16:54:57
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-380?page=comments#action_23415 ] Sergey Vladimirov commented on ANN-380: --------------------------------------- May be "Hibernate Core" will be more appropriate module for this improvment. > Need more info about error place > -------------------------------- > > Key: ANN-380 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-380 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Versions: 3.2.0.cr1 > Environment: Version Hibernate EntityManager 3.2.0.CR1 > Version Hibernate Annotations 3.2.0.CR1 > Environment Hibernate 3.2 cr2 > Reporter: Sergey Vladimirov > > > Need more info where error occured. For example, query name. > java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode > \-[IDENT] IdentNode: 'user' {originalText=user} > at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145) > at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:714) > at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:538) > at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645) > at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281) > at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229) > at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228) > at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) > at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) > at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77) > at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56) > at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) > at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:400) > at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:351) > at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218) > at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:630) > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:759) > at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:626) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Sergey V. (JIRA) <no...@at...> - 2006-06-26 16:51:58
|
Need more info about error place -------------------------------- Key: ANN-380 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-380 Project: Hibernate Annotations Type: Improvement Components: binder Versions: 3.2.0.cr1 Environment: Version Hibernate EntityManager 3.2.0.CR1 Version Hibernate Annotations 3.2.0.CR1 Environment Hibernate 3.2 cr2 Reporter: Sergey Vladimirov Need more info where error occured. For example, query name. java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode \-[IDENT] IdentNode: 'user' {originalText=user} at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145) at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:714) at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:538) at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645) at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111) at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77) at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56) at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72) at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:400) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:351) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:630) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:759) at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:626) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: mike p. (JIRA) <no...@at...> - 2006-06-26 15:28:25
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293?page=all ] mike perham updated HHH-1293: ----------------------------- Attachment: hibernate3.jar Attaching a custom build of Hibernate. This is 3.1.3 + rollback of HHH-1103. I've verified that it causes no unit test regressions and fixes the problem for us on Linux. > java.lang.NoSuchMethodError: <persistent class>.getHibernateLazyInitializer() > ----------------------------------------------------------------------------- > > Key: HHH-1293 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293 > Project: Hibernate3 > Type: Bug > Versions: 3.1.1 > Reporter: Andreas Schildbach > Priority: Blocker > Attachments: hibernate3.jar, manysessions.tgz > > > As documented in > http://forum.hibernate.org/viewtopic.php?t=940119 > some people (including me) are getting this exception with the final release of Hibernate 3.1: > java.lang.NoSuchMethodError: de.schildbach.game.integration.HibernateGamePlayer.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer; > at de.schildbach.game.integration.HibernateGamePlayer$$EnhancerByCGLIB$$afecb986.getHibernateLazyInitializer(<generated>) > at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274) > at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177) > at org.hibernate.type.TypeFactory.assemble(TypeFactory.java:398) > at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:96) > at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:82) > at org.hibernate.event.def.DefaultLoadEventListener.assembleCacheEntry(DefaultLoadEventListener.java:520) > at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:474) > at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:328) > at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123) > at org.hibernate.event.def.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:202) > at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:169) > at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87) > at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:869) > at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:838) > at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266) > at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177) > at org.hibernate.collection.PersistentList.initializeFromCache(PersistentList.java:378) > at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35) > at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:130) > at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48) > at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1627) > at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344) > at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) > at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109) > at org.hibernate.collection.PersistentList.size(PersistentList.java:91) > The exception varies with the actual persistent class in use. Most people seem to be using JDK 1.5 and Linux. Some reports say that the exception does not happen from the very start of the application, but it takes "several invocations"/"some time" until it appear, but then it appears very often. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Sergey V. (JIRA) <no...@at...> - 2006-06-26 14:46:00
|
Shoulb be able to specify cache enties to evict in generated SQL query ---------------------------------------------------------------------- Key: HHH-1854 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1854 Project: Hibernate3 Type: New Feature Components: core Versions: 3.2.0.cr2 Environment: Hibernate cr2 Reporter: Sergey Vladimirov For example: Query updateQuery = entityManager.createNativeQuery("INSERT INTO " + table + "(" + field + ") VALUES(?)"); if (updateQuery instanceof HibernateQuery) { org.hibernate.Query hibUpdateQuery = ((HibernateQuery) updateQuery) .getHibernateQuery(); if (hibUpdateQuery instanceof SQLQuery) { SQLQuery query = (SQLQuery) hibUpdateQuery; //specify tables to clear after update } } I want to specify, that only table with name from variable "table" should be cleared. Or that some entires should be evicted. But I need to prevent FULL second-level cache eviction. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve E. (JIRA) <no...@at...> - 2006-06-26 14:37:59
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1236?page=comments#action_23413 ] Steve Ebersole commented on HHH-1236: ------------------------------------- So what exactly was rude in my original comment to him? When I take the time to try and help someone try to understand something and they in turn want to argue the point with me (where they obviously do not understand), yes I end the conversation. Since your giving out humbleness lectures, perhaps you can enlighten me with what is so rude about that... > Remove static reference to classloader, to avoid memory leak at webapp reload > ----------------------------------------------------------------------------- > > Key: HHH-1236 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1236 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.0.5 > Environment: Resin 3.0.15, CGLib 2.1_3 > Reporter: Mattias Jiderhamn > Assignee: Steve Ebersole > Fix For: 3.2.0.alpha1, 3.1.3 > Attachments: OptimizeIt.jpg > > > To avoid memory leaks when web applications reload, please either remove reference to classloader in org.hibernate.util.DTDEntityResolver or remove static reference to that class in org.hibernate.util.XMLHelper > For background information, please see > http://forum.hibernate.org/viewtopic.php?p=2275217#2275217 > http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 > and attached screen shot -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Mattias J. (JIRA) <no...@at...> - 2006-06-26 13:41:58
|
CREATE SCHEMA inside database-object need to execute before tables are created ------------------------------------------------------------------------------ Key: HHH-1853 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1853 Project: Hibernate3 Type: Improvement Versions: 3.1.3 Environment: hsqldb 1.8.0 Reporter: Mattias Jiderhamn Priority: Minor In order to have Hibernate create database schemas for hsqldb, you have to insert a <database-object> in your mapping file (http://forums.hibernate.org/viewtopic.php?p=2305138). Problem is, all the database-object statements are executed after the tables are created, so tables in non-default schemas will not be created. To get around this, you have to first use Configuration.generateSchemaCreationScript() to get the schemas, and then Configuration.generateSchemaUpdateScript() to get the tables inside the schemas. (This is a bit problematic when using Springs LocalSessionFactoryBean) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: David de M. (JIRA) <no...@at...> - 2006-06-26 09:33:57
|
@MappedSuperclass - PropertyAccessException ------------------------------------------- Key: HHH-1852 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1852 Project: Hibernate3 Type: Bug Components: core Versions: 3.2.0.cr2 Environment: hibernate-3.2.0.cr2, hibernate-annotations-3.2.0.cr1, hibernate-entitymanager-3.2.0.cr1 Reporter: David de Mingo Attachments: src.zip Caused by: org.hibernate.PropertyAccessException: could not get a field value by reflection getter of org.endea.model.product.ProductAttribute.data at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:35) at org.hibernate.property.DirectPropertyAccessor$DirectGetter.getForInsert(DirectPropertyAccessor.java:40) at org.hibernate.tuple.AbstractEntityTuplizer.getPropertyValuesToInsert(AbstractEntityTuplizer.java:264) ... Caused by: java.lang.IllegalArgumentException at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:37) at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:18) at java.lang.reflect.Field.get(Field.java:357) at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:32) ... 41 morer -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Max R. A. (JIRA) <no...@at...> - 2006-06-26 08:23:57
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-695?page=comments#action_23412 ] Max Rydahl Andersen commented on HBX-695: ----------------------------------------- what does #3 mean ? What results ? #4 what is the full stacktrace? > org.eclipse.jface.util.Assert$AssertionFailedException (I have to restart Eclipse to resolve this EXCEPTION) > ------------------------------------------------------------------------------------------------------------ > > Key: HBX-695 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-695 > Project: Hibernate Tools > Type: Bug > Components: eclipse, consoleconfiguration > Versions: 3.1.beta5 > Reporter: Chad Perry > Priority: Minor > > > I keep getting: > org.eclipse.jface.util.Assert$AssertionFailedException when I tried to display HSQL result. > 1) New Tools Install > 2) Configure a SessionFactory > 3) Attempt to display results > 4) SEE: org.eclipse.jface.util.Assert$AssertionFailedException (This is a JFACE error) > I THINK it is some setting that is not getting initialized until you restart Eclipse. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Max R. A. (JIRA) <no...@at...> - 2006-06-26 08:14:57
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-694?page=comments#action_23411 ] Max Rydahl Andersen commented on HBX-694: ----------------------------------------- of course - if I could just look at the projects classpath I did not need the seperated classpath at all! The whole point is that you just point to the classes/build directory without "dragging" in all other dependencies such as e.g. Hibernate libs which would collide with the hibernate jars used in the hibernate plugin. This is also documented in the docs and explicitly written on the classpath console configuration dialog page. > java.lang.NullPointerException when trying to create a Hibernate Configuration > ------------------------------------------------------------------------------- > > Key: HBX-694 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-694 > Project: Hibernate Tools > Type: Bug > Components: eclipse > Versions: 3.1.beta5 > Environment: Oralce 10g > eclipse.buildId=I20050627-1435 > java.version=1.5.0_06 > java.vendor=Sun Microsystems Inc. > BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US > Command-line arguments: -os win32 -ws win32 -arch x86 > This is a continuation of log file C:\PROJECTS\EclipseWorkSpace\.metadata\.bak_0.log > Created Time: 2006-06-21 17:53:45.486 > Reporter: Chad Perry > Fix For: 3.2beta6 > Attachments: clip_image002.jpg > > > java.lang.NullPointerException > at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getRawLocationFile(ClassLoaderHelper.java:91) > at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getRawLocationURL(ClassLoaderHelper.java:83) > at org.hibernate.eclipse.console.utils.ClassLoaderHelper.getRawLocationsURLForResources(ClassLoaderHelper.java:117) > at org.hibernate.eclipse.console.EclipseConsoleConfigurationPreferences.getCustomClassPathURLS(EclipseConsoleConfigurationPreferences.java:81) > at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:109) > at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:98) > at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:19) > at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:69) > at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76) > NOTE: While it maybe a bad setup/configuration on MY part, I think a better exception is in order. Because right now, I have no idea why this is happening to me? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Rengesh (JIRA) <no...@at...> - 2006-06-26 08:06:00
|
no JNDI name configured ----------------------- Key: HB-1562 URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-1562 Project: Hibernate2 Type: Bug Environment: J2EE,Mysql 5.0.21,Hibernate2.1,Struts Reporter: Rengesh 13:01:56,265 INFO [Environment] Hibernate 2.1.2 13:01:56,296 INFO [Environment] loaded properties from resource hibernate.properties: {hibernate.cglib.use_reflection_optimizer=false, hibernate.dialect=net.sf.hibern 13:01:56,296 INFO [Configuration] configuring from resource: /hibernate.cfg.xml 13:01:56,296 INFO [Configuration] Configuration resource: /hibernate.cfg.xml 13:01:56,500 INFO [Configuration] Mapping resource: org/efs/openreports/objects/Report.hbm.xml 13:01:56,687 INFO [Binder] Mapping class: org.efs.openreports.objects.Report -> REPORT 13:01:56,843 INFO [Binder] Mapping collection: org.efs.openreports.objects.Report.parameters -> REPORT_PARAMETER_MAP 13:01:56,906 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ReportDataSource.hbm.xml 13:01:56,937 INFO [Binder] Mapping class: org.efs.openreports.objects.ReportDataSource -> REPORT_DATASOURCE 13:01:57,000 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ReportGroup.hbm.xml 13:01:57,031 INFO [Binder] Mapping class: org.efs.openreports.objects.ReportGroup -> REPORT_GROUP 13:01:57,031 INFO [Binder] Mapping collection: org.efs.openreports.objects.ReportGroup.reports -> REPORT_GROUP_MAP 13:01:57,031 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ReportParameter.hbm.xml 13:01:57,046 INFO [Binder] Mapping class: org.efs.openreports.objects.ReportParameter -> REPORT_PARAMETER 13:01:57,046 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ReportUser.hbm.xml 13:01:57,062 INFO [Binder] Mapping class: org.efs.openreports.objects.ReportUser -> REPORT_USER 13:01:57,125 INFO [Binder] Mapping collection: org.efs.openreports.objects.ReportUser.groups -> USER_GROUP_MAP 13:01:57,125 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ReportLog.hbm.xml 13:01:57,140 INFO [Binder] Mapping class: org.efs.openreports.objects.ReportLog -> REPORT_LOG 13:01:57,140 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ReportChart.hbm.xml 13:01:57,156 INFO [Binder] Mapping class: org.efs.openreports.objects.ReportChart -> REPORT_CHART 13:01:57,156 INFO [Configuration] Mapping resource: org/efs/openreports/objects/ORProperty.hbm.xml 13:01:57,171 INFO [Binder] Mapping class: org.efs.openreports.objects.ORProperty -> OR_PROPERTIES 13:01:57,171 INFO [Configuration] Configured SessionFactory: null 13:01:57,171 INFO [Configuration] processing one-to-many association mappings 13:01:57,500 INFO [Configuration] processing one-to-one association property references 13:01:57,515 INFO [Configuration] processing foreign key constraints 13:01:57,625 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialect 13:01:57,640 INFO [SettingsFactory] Use outer join fetching: true 13:01:57,656 WARN [UserSuppliedConnectionProvider] No connection properties specified - the user must supply JDBC connections 13:01:57,687 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommend 13:01:57,687 INFO [SettingsFactory] Use scrollable result sets: false 13:01:57,687 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): false 13:01:57,687 INFO [SettingsFactory] Optimize cache for minimal puts: false 13:01:57,687 INFO [SettingsFactory] Query language substitutions: {} 13:01:57,687 INFO [SettingsFactory] cache provider: net.sf.ehcache.hibernate.Provider 13:01:57,718 INFO [Configuration] instantiating and configuring caches 13:01:57,796 INFO [SessionFactoryImpl] building session factory 13:01:58,171 INFO [SessionFactoryObjectFactory] no JNDI name configured 13:01:58,203 INFO [STDOUT] 13:01:58,203 INFO [SessionFactoryProvider] SessionFactoryProvider Created. 13:01:58,218 INFO [STDOUT] 13:01:58,218 INFO [UserPersistenceProvider] UserPersistenceProvider Created. 13:01:58,250 INFO [STDOUT] 13:01:58,250 INFO [UserProviderImpl] UserProviderImpl created 13:01:58,796 INFO [STDOUT] java.lang.UnsupportedOperationException: The user must supply a JDBC connection 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:32) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:65) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:704) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.loader.Loader.doQuery(Loader.java:185) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.loader.Loader.doList(Loader.java:950) 13:01:58,812 INFO [STDOUT] at net.sf.hibernate.loader.Loader.list(Loader.java:941) 13:01:58,828 INFO [STDOUT] at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834) 13:01:58,828 INFO [STDOUT] at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512) 13:01:58,828 INFO [STDOUT] at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1491) 13:01:58,828 INFO [STDOUT] at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1487) 13:01:58,828 INFO [STDOUT] at org.efs.openreports.providers.persistence.UserPersistenceProvider.getUser(UserPersistenceProvider.java:50) 13:01:58,828 INFO [STDOUT] at org.efs.openreports.providers.impl.UserProviderImpl.getUser(UserProviderImpl.java:46) 13:01:58,828 INFO [STDOUT] at org.efs.openreports.actions.LoginAction.execute(LoginAction.java:48) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) 13:01:58,828 INFO [STDOUT] at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115) 13:01:58,828 INFO [STDOUT] at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:280) 13:01:58,828 INFO [STDOUT] at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:250) 13:01:58,828 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 13:01:58,828 INFO [STDOUT] at org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 13:01:58,828 INFO [STDOUT] at com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:69) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 13:01:58,828 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 13:01:58,828 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 13:01:58,843 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 13:01:58,843 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) 13:01:58,843 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) 13:01:58,843 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) 13:01:58,843 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 13:01:58,843 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 13:01:58,843 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 13:01:58,843 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 13:01:58,843 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) 13:01:58,843 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) 13:01:58,843 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 13:01:58,843 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) 13:01:58,843 INFO [STDOUT] at java.lang.Thread.run(Unknown Source) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Mattias J. (JIRA) <no...@at...> - 2006-06-26 06:29:59
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1236?page=comments#action_23410 ] Mattias Jiderhamn commented on HHH-1236: ---------------------------------------- G: The reference to the classloader has been removed in hibernate-3.1\src\org\hibernate\util\DTDEntityResolver.java, so the static reference to DTDEntityResolver is no problem. Steve (and the rest of the Hibernate team): Why the rudeness? Even if your users would be stupid or ignorant (and that may even be true for > 50%), does that really justify being rude??? I've seen this many times (and been there myself) from several team members. How do you expect people to want to report bugs and feature suggestions if they are likely to be insulted and told "you don't understand what you are talking about"? Being a hardcore coder isn't everything. We also need to learn humbleness. > Remove static reference to classloader, to avoid memory leak at webapp reload > ----------------------------------------------------------------------------- > > Key: HHH-1236 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1236 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.0.5 > Environment: Resin 3.0.15, CGLib 2.1_3 > Reporter: Mattias Jiderhamn > Assignee: Steve Ebersole > Fix For: 3.2.0.alpha1, 3.1.3 > Attachments: OptimizeIt.jpg > > > To avoid memory leaks when web applications reload, please either remove reference to classloader in org.hibernate.util.DTDEntityResolver or remove static reference to that class in org.hibernate.util.XMLHelper > For background information, please see > http://forum.hibernate.org/viewtopic.php?p=2275217#2275217 > http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 > and attached screen shot -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-26 01:17:35
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-379?page=comments#action_23403 ] Emmanuel Bernard commented on ANN-379: -------------------------------------- The unique key should be (id, key), i need to look at it > Map<Entity, Entity> fails due to unique constraint on map-key column > --------------------------------------------------------------------- > > Key: ANN-379 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-379 > Project: Hibernate Annotations > Type: Bug > Components: binder > Versions: 3.2.0.cr1 > Environment: hibernate-3.2.0.CR2, hibernate-annotations-3.2.0.CR1, jdk-1.5.0_07 > Reporter: Benjamin Bentmann > Attachments: IndexedCollectionTest.java > > > The current DDL statements for a true Map<Entity, Entity> produce a unique constraint on the map-key column. This effectively prevents multiple entities (hosting such a Map) from using the same map key. > I tracked the problem down to org.hibernate.cfg.annotations.MapBinder and its method bindKeyFromAssociationTable, line 225. In case of an entity as the map-key, the code always sets the unique flag for the join-column... > Attached is a slightly modified version of your own test case IndexedCollectionTest to reproduce the problem. The only change I made is located in the method testRealMap, adding just another Atmosphere with the same GasKey. > For a more verbose problem description you might want to have a look at: > http://forum.hibernate.org/viewtopic.php?t=961102 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |