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: Christian B. (JIRA) <no...@at...> - 2006-05-28 11:54:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-160?page=all ] Christian Bauer updated EJB-160: -------------------------------- Priority: Blocker (was: Minor) Raising priority, we really need this. Without it, integration testing is a real pain if you need SchemaExport. Redeploying all beans works, but results in a very complex test fixture with TestNG (dependsOn, beforeFoo, etc). Not to mention that it is slow... > Push EJB3Configuration and SessionFactory into JNDI > --------------------------------------------------- > > Key: EJB-160 > URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-160 > Project: Hibernate Entity Manager > Type: New Feature > Components: EntityManager > Reporter: Christian Bauer > Priority: Blocker > Fix For: 3.2.0 > > -- 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-05-28 11:35:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1558?page=all ] Max Rydahl Andersen closed HHH-1558: ------------------------------------ Fix Version: 3.2.0 Resolution: Fixed I've added this since most tests passes - still some issues, not all tests passes. > Dialect for new database engine H2 > ---------------------------------- > > Key: HHH-1558 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1558 > Project: Hibernate3 > Type: Patch > Environment: H2 database engine > Reporter: Thomas Mueller > Fix For: 3.2.0 > Attachments: H2Dialect.java, H2Dialect.java > > > This is a dialect for the new database engine H2. > I hope it can be added in the next version of Hibernate. > Please tell me if there are any problems or questions. -- 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: Christian B. (JIRA) <no...@at...> - 2006-05-28 11:09:19
|
Deprecate FlushMode.NEVER and introduce FlushMode.APPLICATION ------------------------------------------------------------- Key: HHH-1790 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1790 Project: Hibernate3 Type: Improvement Reporter: Christian Bauer Priority: Blocker As discussed on the list, to synchronize with the flush mode's for HEM and EJB 3.0 in general. -- 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: Christian B. (JIRA) <no...@at...> - 2006-05-28 11:07:19
|
Add EM property for FlushModeType.APPLICATION --------------------------------------------- Key: EJB-184 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-184 Project: Hibernate Entity Manager Type: New Feature Components: EntityManager Reporter: Christian Bauer Priority: Blocker Add a "flushmode.application" property for createEntityManager() and sync this name with the Glassfish team. -- 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: Christian B. (JIRA) <no...@at...> - 2006-05-28 11:05:39
|
Add @FlushModeType.APPLICATION ------------------------------ Key: ANN-349 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-349 Project: Hibernate Annotations Type: New Feature Reporter: Christian Bauer Priority: Blocker Add @FlushMode(FlushModeType.APPLICATION) and synchronize this name with the Glassfish team. -- 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: Daniele G. (JIRA) <no...@at...> - 2006-05-27 12:02:12
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-160?page=comments#action_23172 ] Daniele Gariboldi commented on HHH-160: --------------------------------------- Sorry, error in bit_or function. Here is the right line: (copied and pasted without changing & with |). registerFunction("bit_or", new SQLFunctionTemplates(Hibernate.INTEGER, "bit_or(?1)", "?1 | ?2 | ?3 | ?4")); > New query parser does not allow bitwise operations > -------------------------------------------------- > > Key: HHH-160 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-160 > Project: Hibernate3 > Type: Improvement > Components: core > Versions: 3.0 rc 1 > Environment: Hibernate 3.0 rc1, MySQL > Reporter: Markus Jessenitschnig > Priority: Minor > > > The new query parser does not allow bitwise operations like bitwise-and and bitwise-or. > Example: > SELECT FIRSTNAME, SURNAME FROM EMPLOYEE WHERE (STATUS & 1) > 0 > The Exception is: > org.hibernate.QueryException: unexpected char: '&' -- 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: Daniele G. (JIRA) <no...@at...> - 2006-05-27 11:57:17
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-160?page=comments#action_23171 ] Daniele Gariboldi commented on HHH-160: --------------------------------------- I vote for one standard naming convention for bitwise functions in Hibernate distribution standard dialects. Here is how I implement bitwise function (and aggregate bitwise functions found in group by clause) for PostgreSQL 8.1, hibernate 3.1.2. Thank you for your work, hibernate community. import java.util.List; import org.hibernate.Hibernate; import org.hibernate.QueryException; import org.hibernate.dialect.function.SQLFunction; import org.hibernate.dialect.function.SQLFunctionTemplate; import org.hibernate.engine.Mapping; import org.hibernate.engine.SessionFactoryImplementor; import org.hibernate.type.Type; /** * Implements bitwise varargs (max 4) functions for PostgreSQL. Overload bit_and * and bit_or functions using 1 arg as aggreagate bitwise function. */ public class PostgreSQLDialect extends org.hibernate.dialect.PostgreSQLDialect { public PostgreSQLDialect() { super(); registerFunction("bit_and", new SQLFunctionTemplates(Hibernate.INTEGER, "bit_and(?1)", "?1 & ?2 & ?3 & ?4")); registerFunction("bit_not", new SQLFunctionTemplate(Hibernate.INTEGER, "~?1")); registerFunction("bit_or", new SQLFunctionTemplates(Hibernate.INTEGER, "bit_or(?1)", "?1 & ?2 & ?3 & ?4")); } public static class SQLFunctionTemplates implements SQLFunction { private SQLFunctionTemplate template1arg; private SQLFunctionTemplate templateNarg; public SQLFunctionTemplates(Type type, String template1arg, String templateNarg) { this.template1arg = new SQLFunctionTemplate(type, template1arg); this.templateNarg = new SQLFunctionTemplate(type, templateNarg); } private SQLFunctionTemplate getSQLFunctionTemplate(List args) { if (args.size() == 1) return template1arg; return templateNarg; } public Type getReturnType(Type columnType, Mapping mapping) throws QueryException { return template1arg.getReturnType(columnType, mapping); } public boolean hasArguments() { return true; } public boolean hasParenthesesIfNoArguments() { return true; } public String render(List args, SessionFactoryImplementor factory) throws QueryException { return getSQLFunctionTemplate(args).render(args, factory); } } } > New query parser does not allow bitwise operations > -------------------------------------------------- > > Key: HHH-160 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-160 > Project: Hibernate3 > Type: Improvement > Components: core > Versions: 3.0 rc 1 > Environment: Hibernate 3.0 rc1, MySQL > Reporter: Markus Jessenitschnig > Priority: Minor > > > The new query parser does not allow bitwise operations like bitwise-and and bitwise-or. > Example: > SELECT FIRSTNAME, SURNAME FROM EMPLOYEE WHERE (STATUS & 1) > 0 > The Exception is: > org.hibernate.QueryException: unexpected char: '&' -- 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-05-27 11:48:15
|
HashMap initialization is very unefficient in cache hits -------------------------------------------------------- Key: HHH-1789 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH= -1789 Project: Hibernate3 Type: Improvement Environment: hibernate 3, db n/a Reporter: Aapo Kyr=C3=B6l=C3=A4 We have an entity which has a <map>-type of collection attached to it, that= uses <many-to-many> mapping. The map has cache setting of <cache usage=3D"= nonstrict-read-write"/>=20 The problem is that the map is often quite large, 500-1000 elements in it. = But when Hibernate3 instantiates it from cache (PersistentMap.initializeFro= mCache()), it will create a HashMap with default parameters and then .put()= each item from the serialized cache data to the map.=20 HashMap default size is 16 and it resizes it to double always when it has 7= 5%*capacity elements in it. So, initializing a HashMap with 1000 entries wi= ll cause 7 resizes (which are expensive): 16->32->64->128->256->512->1024->= 2048. This consumes a lot of memory and cpu because HashMap.resize() is a c= ostly operation.=20 It would be better for Hibernate to initialize the map with loadfactor 1.0 = and size of the cached serialized data array / 2 + some extra.=20 --=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: Daniele G. (JIRA) <no...@at...> - 2006-05-27 10:44:30
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-489?page=comments#action_23170 ] Daniele Gariboldi commented on HHH-489: --------------------------------------- In hibernate 3.1.2 i did so for PostgresSQL, just in case someone is looking for this (I was ;-) ). It would be useful to standardize on function names, for HQL beeing cross-db for bitwise operations. import org.hibernate.Hibernate; import org.hibernate.dialect.function.SQLFunctionTemplate; public class PostgreSQLDialect extends org.hibernate.dialect.PostgreSQLDialect { public PostgreSQLDialect() { super(); registerFunction("bit_and", new SQLFunctionTemplate(Hibernate.INTEGER,"?1 & ?2")); registerFunction("bit_or", new SQLFunctionTemplate(Hibernate.INTEGER,"?1 | ?2")); registerFunction("bit_not", new SQLFunctionTemplate(Hibernate.INTEGER,"~?1")); registerFunction("gbit_or", new SQLFunctionTemplate(Hibernate.INTEGER,"bit_or(?1)")); } } > Custom SQLFunction not being called > ----------------------------------- > > Key: HHH-489 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-489 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.0.3 > Environment: Java 1.4.2_04 > Hibernate 3.0.3 > MySQL 3.23.45-max-nt > mysql-connector-java-3.1.6 > Reporter: Darren Scott > Assignee: Gavin King > Attachments: hibernate-sqlfunction-test.zip > > > A custom SQLFunction I have written to implement bitwise AND behaviour for MySQL dialects is not being called as expected under Hibernate 3.0.2 and 3.0.3. The resulting SQL does not show the expected function translation from HQL bitwise_and(X,Y) to SQL X & Y. > This previously worked under Hibernate 3.0.1. -- 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: Thomas R. (JIRA) <no...@at...> - 2006-05-27 04:25:12
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-348?page=all ] Thomas Risberg updated ANN-348: ------------------------------- Attachment: ANN-348-src.zip Attached source for test case > @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: Thomas R. (JIRA) <no...@at...> - 2006-05-27 04:23:20
|
@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 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-05-26 14:29:36
|
GeneratorType.AUTO should use MultipleHiLoPerTableGenerator not TableHiLoGenerator ---------------------------------------------------------------------------------- Key: ANN-347 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-347 Project: Hibernate Annotations Type: Bug Components: binder Versions: 3.2.0.cr1 Reporter: Emmanuel Bernard -- 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: Christian B. (JIRA) <no...@at...> - 2006-05-26 13:30:36
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HB-123?page=all ] Christian Bauer resolved HB-123: -------------------------------- Resolution: Won't Fix This is all done in Hibernate 3.2. You can use a DISTINCT keyword or a ResultTransformer to hide the duplicates, if you want to. The new DISTINCT keyword filters the duplicate root entities in memory. Of course there is no way to "hide" them at the SQL row level, and that is also why thy are exposed by default. > Apply distinctness to HQL fetch of collection > --------------------------------------------- > > Key: HB-123 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-123 > Project: Hibernate2 > Type: Improvement > Components: core > Versions: 2.0 final > Reporter: Steve Knight > Priority: Minor > > > HQL fetch of an associated collection should return distinct entities. > For example, the following HQL: > "FROM Department dept LEFT JOIN FETCH dept.personnel" > should return each department(with its associated collection) only once. -- 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: Martin S. (JIRA) <no...@at...> - 2006-05-26 03:42:18
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1788?page=comments#action_23167 ] Martin Schulz commented on HHH-1788: ------------------------------------ Hmm, I guess the association between the comment and the attachments is not automatically made obvious. Attachement HHH-1788 _is_ the intended patch (text). > 1-m Collections were the FK is part of a composite PK fail with duplicate column check > -------------------------------------------------------------------------------------- > > Key: HHH-1788 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1788 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.2.0.cr2 > Environment: 3.2.0 > Sybase ASE > Reporter: Martin Schulz > Attachments: HHH-1788, ParentChild_1.hbm.xml > > > This is a very simple use case. > Assume tables Parent and Child (no inheritance) where the Child has a composite PK (parentID, childNumber). > See a simple sample mapping attached. > Both the key element for the collection and the composite key are required, but the duplicated column is caught and > rejected. At the core of the issue is the key element of the collection, which in my mind should be declarative and > need not represent a mapped column... however adressing that would become a major compatibility issue, so > a simpler patch is in order. > There are many different possible strategies to address this, but the patch I have used successfully is minimal > and benign, if limited to the exact scenario at hand. -- 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: Martin S. (JIRA) <no...@at...> - 2006-05-26 03:42:18
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1621?page=all ] Martin Schulz updated HHH-1621: ------------------------------- Attachment: HHH-1621 Patch > subclass mapping by discriminator - should instantiate parent for unmapped discriminator values > ----------------------------------------------------------------------------------------------- > > Key: HHH-1621 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1621 > Project: Hibernate3 > Type: Improvement > Components: core > Environment: 3.1.2 > Sybase ASE 12.5.3 > Reporter: Martin Schulz > Attachments: HHH-1621 > > > Scenario: The parent class A has a discriminator field and some but all possible scriminator values are mapped to subclasses. > Current behavior: > 1) Default: > The following exception is thrown > org.hibernate.WrongClassException: Object with id: 10000 was not of the specified subclass: A (Discriminator: D) > at org.hibernate.loader.Loader.getInstanceClass(Loader.java:1445) > [ the error itself is also quite misleading, as the row is exactly of / for the specified class A. But there simply was no > subclass found ]. > 2) discriminator with force="true" > The parent class is never instantiated, only the mapped subclasses are instantiated. > Proposed behavior: > The parent class should be instantiated for those rows with unmapped discriminator values. > Characteristics of proposed behavior: > - all rows in resultset would lead to instantiated class in the inheritence tree, > - the behavior would be in line with how joined-subclass behaves > - no caveat documentation required > Implementation: > (Easy) > in Loader.java, lines 1443ff, do not throw WrongClassException, but instead > return persister.getEntityName(); > (Alternate) > change persister.getSubclassForDiscriminatorValue() implementations correspondingly. > Thx for your consideration / vote. -- 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: Martin S. (JIRA) <no...@at...> - 2006-05-26 03:41:46
|
1-m Collections were the FK is part of a composite PK fail with duplicate column check -------------------------------------------------------------------------------------- Key: HHH-1788 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1788 Project: Hibernate3 Type: Bug Components: core Versions: 3.2.0.cr2 Environment: 3.2.0 Sybase ASE Reporter: Martin Schulz Attachments: ParentChild_1.hbm.xml This is a very simple use case. Assume tables Parent and Child (no inheritance) where the Child has a composite PK (parentID, childNumber). See a simple sample mapping attached. Both the key element for the collection and the composite key are required, but the duplicated column is caught and rejected. At the core of the issue is the key element of the collection, which in my mind should be declarative and need not represent a mapped column... however adressing that would become a major compatibility issue, so a simpler patch is in order. There are many different possible strategies to address this, but the patch I have used successfully is minimal and benign, if limited to the exact scenario at hand. -- 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: Martin S. (JIRA) <no...@at...> - 2006-05-26 03:41:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1788?page=all ] Martin Schulz updated HHH-1788: ------------------------------- Attachment: HHH-1788 Patch This patch detects the scenario (Backref Property with column of same name in the entity's key columns), and then marks the Backref as not insertable. This has the desired effect of a) passing the duplicate checking b) generate the correct insert Object array > 1-m Collections were the FK is part of a composite PK fail with duplicate column check > -------------------------------------------------------------------------------------- > > Key: HHH-1788 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1788 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.2.0.cr2 > Environment: 3.2.0 > Sybase ASE > Reporter: Martin Schulz > Attachments: HHH-1788, ParentChild_1.hbm.xml > > > This is a very simple use case. > Assume tables Parent and Child (no inheritance) where the Child has a composite PK (parentID, childNumber). > See a simple sample mapping attached. > Both the key element for the collection and the composite key are required, but the duplicated column is caught and > rejected. At the core of the issue is the key element of the collection, which in my mind should be declarative and > need not represent a mapped column... however adressing that would become a major compatibility issue, so > a simpler patch is in order. > There are many different possible strategies to address this, but the patch I have used successfully is minimal > and benign, if limited to the exact scenario at hand. -- 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-05-25 21:39:11
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1781?page=comments#action_23164 ] Emmanuel Bernard commented on HHH-1781: --------------------------------------- Criteria c = s.createCriteria(Reservation.class) .setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY) ... > Criteria query returns duplicate results when root class contains eagerly fetched many-to-many collection > --------------------------------------------------------------------------------------------------------- > > Key: HHH-1781 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1781 > Project: Hibernate3 > Type: Bug > Components: query-criteria > Versions: 3.2.0.cr2 > Environment: Hibernate 3.2 post CR2, Oracle 10g > Reporter: Adrian Sampaleanu > > > The following query returns multiple UserImpl instances when the "ids" collection holds just one identifier: > return session.createCriteria(UserImpl.class) > .add(Restrictions.in("id", ids)) > .list(); > Sniffing the generated SQL I get: > SELECT > this_.ID as ID46_3_, > this_.version as version46_3_, > this_.locale as locale46_3_, > this_.username as username46_3_, > this_.ENABLED as ENABLED46_3_, > this_.ORGANIZATION_ID as ORGANIZ12_46_3_, > this_.firstname as firstname46_3_, > this_.lastname as lastname46_3_, > this_.EMAIL as EMAIL46_3_, > this_.OTA_LOGIN as OTA9_46_3_, > this_.OTA_PASSWORD as OTA10_46_3_, > this_.PASSWORD as PASSWORD46_3_, > groups2_.USER_ID as USER1_5_, > groupimpl3_.id as GROUP2_5_, > groupimpl3_.id as id43_0_, > groupimpl3_.name as name43_0_, > groupimpl3_.version as version43_0_, > organizati4_.id as id37_1_, > organizati4_.name as name37_1_, > organizati4_.version as version37_1_, > organizati4_.CURRENCY as CURRENCY37_1_, > organizati4_.enabled as enabled37_1_, > organizati4_.CODE as CODE37_1_, > organizati4_.PARENT_ORGANIZATION_ID as PARENT14_37_1_, > organizati4_.PKG_FILENAME_PATTERN as PKG8_37_1_, > organizati4_.SHORT_CODE as SHORT9_37_1_, > organizati4_.WEBHOST_NAME_PREFIX as WEBHOST10_37_1_, > organizati4_.WEBHOST_NAME as WEBHOST11_37_1_, > organizati4_.PRODUCT_FEATURES as PRODUCT12_37_1_, > organizati4_.ORGANIZATION_TYPE as ORGANIZ13_37_1_, > organizati4_.TYPE as TYPE37_1_, > organizati5_.id as id37_2_, > organizati5_.name as name37_2_, > organizati5_.version as version37_2_, > organizati5_.CURRENCY as CURRENCY37_2_, > organizati5_.enabled as enabled37_2_, > organizati5_.CODE as CODE37_2_, > organizati5_.PARENT_ORGANIZATION_ID as PARENT14_37_2_, > organizati5_.PKG_FILENAME_PATTERN as PKG8_37_2_, > organizati5_.SHORT_CODE as SHORT9_37_2_, > organizati5_.WEBHOST_NAME_PREFIX as WEBHOST10_37_2_, > organizati5_.WEBHOST_NAME as WEBHOST11_37_2_, > organizati5_.PRODUCT_FEATURES as PRODUCT12_37_2_, > organizati5_.ORGANIZATION_TYPE as ORGANIZ13_37_2_, > organizati5_.TYPE as TYPE37_2_ > FROM > rnadarajah.USERS this_ > LEFT OUTER JOIN > rnadarajah.USER_GROUPS groups2_ > ON > this_.ID= groups2_.USER_ID > LEFT OUTER JOIN > rnadarajah.GROUPS groupimpl3_ > ON > groups2_.GROUP_ID= groupimpl3_.id > LEFT OUTER JOIN > rnadarajah.ORGANIZATIONS organizati4_ > ON > this_.ORGANIZATION_ID= organizati4_.id > LEFT OUTER JOIN > rnadarajah.ORGANIZATIONS organizati5_ > ON > organizati4_.PARENT_ORGANIZATION_ID= organizati5_.id > WHERE > this_.ID in (:1) > When substituting the appropriate ID, a row is returned for every group the user is part of. This makes sense since the mapping to the groups (and join) table is specified as: > @ManyToMany(targetEntity = GroupImpl.class, fetch = FetchType.EAGER) > @JoinTable( name = "USER_GROUPS", > joinColumns = @JoinColumn(name = "USER_ID"), > inverseJoinColumns = @JoinColumn(name = "GROUP_ID")) > public Set<Group> getGroups() > { > return _groups; > } > So, the collection is eagerly fetched as specified, but it looks like Hibernate doesn't return a distinct root entity as it should. I'm pretty sure this was working correctly in Hibernate 3.2 CR1 (for sure it was working with some prior version of 3.2), but I can't be sure since we switched from XDoclet to annotations for specifying the mapping of this particular entity at the same time as upgrading and maybe that's where the problem lies. The collection mapping used to be specified as following with XDoclet: > /** > * @hibernate.set table = "USER_GROUPS" > * @hibernate.collection-key column = "USER_ID" > * @hibernate.collection-key-column name = "USER_ID" > * length = "32" > * @hibernate.collection-many-to-many class = "com.xxx.common.model.user.GroupImpl" > * column = "GROUP_ID" > */ > Using the following, I get only one user as expected, for the single ID supplied: > String queryString = "from UserImpl where id in (:userIds)"; > Query query = session.createQuery(queryString); > query.setParameterList("userIds", ids); > return query.list(); > I can do this as a work around, but I'd like to know if this is a problem in Hibernate 3.2 or with something we're doing. -- 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: George C. (JIRA) <no...@at...> - 2006-05-25 20:55:13
|
Postgres dialect needs date_trunc --------------------------------- Key: HHH-1787 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1787 Project: Hibernate3 Type: Patch Components: metamodel Versions: 3.1 Environment: 3.1.3, postgres Reporter: George Courter Attachments: patch Postgres dialect needs the date_trunc function registered. Patch is included. -- 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-05-25 16:38:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-160?page=comments#action_23163 ] Max Rydahl Andersen commented on HHH-160: ----------------------------------------- it can be standardized through the dialect just like Gavin wrote. > New query parser does not allow bitwise operations > -------------------------------------------------- > > Key: HHH-160 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-160 > Project: Hibernate3 > Type: Improvement > Components: core > Versions: 3.0 rc 1 > Environment: Hibernate 3.0 rc1, MySQL > Reporter: Markus Jessenitschnig > Priority: Minor > > > The new query parser does not allow bitwise operations like bitwise-and and bitwise-or. > Example: > SELECT FIRSTNAME, SURNAME FROM EMPLOYEE WHERE (STATUS & 1) > 0 > The Exception is: > org.hibernate.QueryException: unexpected char: '&' -- 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: Daniele G. (JIRA) <no...@at...> - 2006-05-25 16:28:27
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-160?page=comments#action_23162 ] Daniele Gariboldi commented on HHH-160: --------------------------------------- I need this function too (masking permission and quering for permitted objects in one shot). Why it can't be standardize through all the dialect ? It's just a scalar function, could be andbit(a,b) and so on (orbit , xorbit). bit_or is another function in postgresql, of type aggregate, thus my covention. > New query parser does not allow bitwise operations > -------------------------------------------------- > > Key: HHH-160 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-160 > Project: Hibernate3 > Type: Improvement > Components: core > Versions: 3.0 rc 1 > Environment: Hibernate 3.0 rc1, MySQL > Reporter: Markus Jessenitschnig > Priority: Minor > > > The new query parser does not allow bitwise operations like bitwise-and and bitwise-or. > Example: > SELECT FIRSTNAME, SURNAME FROM EMPLOYEE WHERE (STATUS & 1) > 0 > The Exception is: > org.hibernate.QueryException: unexpected char: '&' -- 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: Andrey M. (JIRA) <no...@at...> - 2006-05-25 14:05:14
|
hbm2java does not generate equals/hashCode for composite-id ----------------------------------------------------------- Key: HBX-667 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-667 Project: Hibernate Tools Type: Bug Components: hbm2java, ant Versions: 3.1.beta5 Environment: Hibernate 3.1.3, Sybase database, Windows platform Reporter: Andrey Myatlyuk Attachments: library_dir.gif I'm using Hibernate Tools 3.1.0.beta5 If I use the tools as plug-in for eclipse, it works perfect. All hashCode and equals methods are generated automatically. But if I use Ant task to do the same, no hashCode or equals method are generated. If I use meta attibutes in mapping, then method is implemented, but I have too many composite id to generate, so I'd like hbm2java generate them for me. As it suppose to do. hibernate.cfg.xml and mappings are the same the list of jar files is attached Ant build script: <path id="library.hibernatetools.classpath"> <fileset dir="C:/dev/hibernate/hibernatetools-3.1.0.beta5/lib"> <include name="*.jar"/> </fileset> </path> <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="library.hibernatetools.classpath"/> <target name="hbm2java"> <hibernatetool destdir="${module.jstl.basedir}/src"> <classpath> <path location="${module.jstl.basedir}/src"/> </classpath> <configuration configurationfile="${module.jstl.basedir}/src/hibernate.cfg.xml"/> <hbm2java/> </hibernatetool> </target> Mapping: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Generated May 22, 2006 3:18:01 PM by Hibernate Tools 3.1.0.beta5 --> <hibernate-mapping> <class name="model.ResponseNote" table="ECB_NOTES_RESP" schema="dbo" catalog="recon_dev"> <composite-id name="id" class="model.ResponseNoteId"> <key-property name="ecbResponseId" type="long"> <column name="ECB_RESPONSE_ID" precision="15" scale="0" /> </key-property> <key-property name="ecbEligibilityId" type="int"> <column name="ECB_ELIGIBILITY_ID" /> </key-property> <key-property name="ecbNotesId" type="int"> <column name="ECB_NOTES_ID" /> </key-property> </composite-id> <property name="notes" type="string"> <column name="NOTES" length="264" /> </property> </class> </hibernate-mapping> Generated java with Ant task: package model; // Generated May 24, 2006 2:51:40 PM by Hibernate Tools 3.1.0.beta5 /** * ResponseNoteId generated by hbm2java */ public class ResponseNoteId implements java.io.Serializable { // Fields private long ecbResponseId; private int ecbEligibilityId; private int ecbNotesId; // Constructors /** default constructor */ public ResponseNoteId() { } /** full constructor */ public ResponseNoteId(long ecbResponseId, int ecbEligibilityId, int ecbNotesId) { this.ecbResponseId = ecbResponseId; this.ecbEligibilityId = ecbEligibilityId; this.ecbNotesId = ecbNotesId; } // Property accessors public long getEcbResponseId() { return this.ecbResponseId; } public void setEcbResponseId(long ecbResponseId) { this.ecbResponseId = ecbResponseId; } public int getEcbEligibilityId() { return this.ecbEligibilityId; } public void setEcbEligibilityId(int ecbEligibilityId) { this.ecbEligibilityId = ecbEligibilityId; } public int getEcbNotesId() { return this.ecbNotesId; } public void setEcbNotesId(int ecbNotesId) { this.ecbNotesId = ecbNotesId; } } Generated java within Eclipse: package model; // Generated May 24, 2006 11:43:19 AM by Hibernate Tools 3.1.0.beta5 /** * EcbNotesRespId generated by hbm2java */ public class EcbNotesRespId implements java.io.Serializable { // Fields private long ecbResponseId; private int ecbEligibilityId; private int ecbNotesId; // Constructors /** default constructor */ public EcbNotesRespId() { } /** full constructor */ public EcbNotesRespId(long ecbResponseId, int ecbEligibilityId, int ecbNotesId) { this.ecbResponseId = ecbResponseId; this.ecbEligibilityId = ecbEligibilityId; this.ecbNotesId = ecbNotesId; } // Property accessors public long getEcbResponseId() { return this.ecbResponseId; } public void setEcbResponseId(long ecbResponseId) { this.ecbResponseId = ecbResponseId; } public int getEcbEligibilityId() { return this.ecbEligibilityId; } public void setEcbEligibilityId(int ecbEligibilityId) { this.ecbEligibilityId = ecbEligibilityId; } public int getEcbNotesId() { return this.ecbNotesId; } public void setEcbNotesId(int ecbNotesId) { this.ecbNotesId = ecbNotesId; } public boolean equals(Object other) { if ((this == other)) return true; if ((other == null)) return false; if (!(other instanceof EcbNotesRespId)) return false; EcbNotesRespId castOther = (EcbNotesRespId) other; return (this.getEcbResponseId() == castOther.getEcbResponseId()) && (this.getEcbEligibilityId() == castOther .getEcbEligibilityId()) && (this.getEcbNotesId() == castOther.getEcbNotesId()); } public int hashCode() { int result = 17; result = 37 * result + (int) this.getEcbResponseId(); result = 37 * result + this.getEcbEligibilityId(); result = 37 * result + this.getEcbNotesId(); return result; } } With all this code with Ant task I get ResponseNoteId java file without equals or hashCode methods. While within Eclipse, using the same code I get equals and hashCode implemented. -- 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: Tomi S. (JIRA) <no...@at...> - 2006-05-25 13:21:44
|
JTASessionContext.CleanupSynch does not remove sessions from currentSessionMap ------------------------------------------------------------------------------ Key: HHH-1786 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1786 Project: Hibernate3 Type: Bug Versions: 3.1.2 Environment: IBM WebSphere 6.0.2.7, Hibernate CVS snapshot from 2006-02-24 Reporter: Tomi Szabo Attachments: JTASessionContext.java We are using JTASessionContext, CMTTransaction and WebSphereExtendedJTATransactionLookup. We have experienced some memmory leak problems and after closer inspection we have found that Hibernate sessions are not removed from currentSessionMap inside JTASessionContext. Method JTASessionContext.CleanupSynch.afterCompletion() is called as expected but code "context.currentSessionMap.remove( txn );" does not remove session from Map because of key's hashcode has changed. This is due to fact that com.ibm.websphere.jtaextensions.ExtendedJTATransaction.hashCode is actually ID of underlaying transaction. But if it comes to the afterCompletion method in CleanupSynch the underlaying transaction is already closed. Closed transaction has ID 0 (default value) and it is different from ID under which the Hibernate session was previously inserted into Map. Possible patch is in attachements. -- 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: Arik G. (JIRA) <no...@at...> - 2006-05-25 08:37:24
|
validate not working with oracle dblinks ---------------------------------------- Key: HHH-1785 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1785 Project: Hibernate3 Type: Bug Versions: 3.1 rc2 Environment: Hibernate: 3.1.rc2 Database: Oracle 9i Reporter: Arik Galansky Full stack trace of any exception that occurs: Don't have a full stack availible, but here is the last part: Caused by:org.hibernate.HibernateException: Missing Table: table@dblink org.hibernate.cfg.Configuration.ValidateSchema (Configuration.java953) Name and version of the database you are using: Oracle 9i the problem is that when I set the hibernate.hbm2ddl.auto to validate I get the mentioned below Exception on a table that is found on a remote DB/ important to note that I can select from the table when it comes to queries, but only if I put it the hbm2ddl on "update" mode which is ofcourse not healthy considering I don't want the EJB to alternate my DB stracture in any way. * important to mention that the user on the other side of the DBlink has the "select any dictionary" grant so he should have no problem selecting from the dba_* tables. -- 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: Martin S. (JIRA) <no...@at...> - 2006-05-25 03:38:29
|
Dom4j / dynamic-map modes should support cascade delete-orphan -------------------------------------------------------------- Key: HHH-1784 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1784 Project: Hibernate3 Type: Improvement Components: core Versions: 3.2.0.cr2 Reporter: Martin Schulz Currently, in either of the dynamic modes, Cascade.deleteOrphans() cannot and is not being called since cascadeCollectionElements() checks for 'child instanceof PersistentCollection'. Support for delete-orphan would advance the functionality of the dynamic modes. Methods to compare the persisted state with the dynamic collection are needed. -- 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 |