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: old <xm...@or...> - 2006-12-05 07:48:09
|
66354 |
From: thumbnail t. <qbj...@tw...> - 2006-10-19 16:06:38
|
An Investor ALERT is being issued starting right N0W. Keep your eyes glued on P.S.U.D!! PETROSUN DRILLING (P.S.U.D.) Current Price: 1.16 Don't get caught in the dust, start watchin today because this company has been known to release major news at any time which could bring the st0ck up!! Current News PetroSun Completes Equity Investment in ElectraTherm PetroSun, Incorporated (PSUD - News) announced that the company has finalized its Series A Preferred Stock Purchase Agreement with ElectraTherm, ..... Check your stock source for full press releases on this exciting stock! Don't miss out ! online was at AM. purplerose Total visited today: aboshhab Aegis get know better. hello loveman Today Advice problems help out. SubForums: Tips amp Whats sign jurupa Ask Male Wonder what guy friend thinking Find members. Mathias soapbox passion. Artist album song radio station based choice. unlimited totally you. hundreds genre. Also enjoy television shows anywhere else web. easy rediscover past Jamaica locations Montego Negril Ocho Rios Key West via EYW Lake Tahoe London Mazatlan Myrtle Orleans City Paris Phoenix Playa del Carmen Rico Vallarta |
From: JS P. S. <su...@js...> - 2006-08-14 17:45:26
|
Hi, Hi, I'm not quite sure if this is the right mailing list, but hope it is as I'm not sure how to solve my problem. The hibernate forum viewed many times but did not reply. So here goes: I have the folowing mapping (simplified for post): <class name="PhisicalEntity" table="PHISICAL_ENTITIES"> <id name="id" type="java.lang.Long" column="id" /> <joined-subclass name="Employee" table="EMPLOYEES"> <key column="phisicalentityId" /> </joined-subclass> <joined-subclass name="Company" table="COMPANIES"> <key column="phisicalentityId" /> </joined-subclass> </class> Where PhisicalEntity is the super class for Employee and Company. Now when I fetch my Set of employees for a company I get the exception shown below. How does Hibernate handle the ProxyFactory for a joined-subclass and how can I prevent this exception? Thank you, Joost The exception: java.lang.NoClassDefFoundError at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitialize r.java:116) at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java :41) at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer. java:161) at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.jav a:131) at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntity Persister.java:412) at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSu bclassEntityPersister.java:90) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFacto ry.java:58) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) at com.jsportal.projectportal.transactionManagement.HibernateResource.<init>(Hi bernateResource.java:58) at com.jsportal.projectportal.transactionManagement.licenseHibernateResource.<i nit>(licenseHibernateResource.java:20) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.jsportal.projectportal._config.<init>(_config.java:163) at com.jsportal.projectportal.licenseConfig.<init>(licenseConfig.java:155) at com.jsportal.projectportal.web.webLicenseConfig.<init>(webLicenseConfig.java :89) at com.jsportal.projectportal.web.ApplicationStartupServlet.setUpApplication(Ap plicationStartupServlet.java:105) at com.jsportal.projectportal.web.ApplicationStartupServlet.init(ApplicationSta rtupServlet.java:37) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11 05) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) "WARN 11 Aug 2006 23:09:32,906 [Thread-1] org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer. java:173) - could not create proxy factory for:com.jsportal.projectportal.portalBeans.Employee org.hibernate.HibernateException: CGLIB Enhancement failed: com.jsportal.projectportal.portalBeans.Employee at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitialize r.java:132) at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java :41) at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer. java:161) at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.jav a:131) at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntity Persister.java:412) at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSu bclassEntityPersister.java:90) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFacto ry.java:58) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154) at com.jsportal.projectportal.transactionManagement.HibernateResource.<init>(Hi bernateResource.java:58) at com.jsportal.projectportal.transactionManagement.licenseHibernateResource.<i nit>(licenseHibernateResource.java:20) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.jsportal.projectportal._config.<init>(_config.java:163) at com.jsportal.projectportal.licenseConfig.<init>(licenseConfig.java:155) at com.jsportal.projectportal.web.webLicenseConfig.<init>(webLicenseConfig.java :89) at com.jsportal.projectportal.web.ApplicationStartupServlet.setUpApplication(Ap plicationStartupServlet.java:105) at com.jsportal.projectportal.web.ApplicationStartupServlet.init(ApplicationSta rtupServlet.java:37) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11 05) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.lang.NoClassDefFoundError at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitialize r.java:116) ... 39 more |
From: Steve E. <ste...@jb...> - 2006-08-11 20:46:50
|
Migration of the Hibernate email lists to their new hosting home is now complete. As of today, automated emails have been fully cut over: JIRA -> hib...@li... SVN -> hib...@li... CruiseControl -> hib...@li... For the past 2 weeks or so I have been monitoring both of the dev lists. As of next week, that will stop and I will only continue to subscribe to hib...@li... The hib...@li... is new and we'll see how it goes. It is supposed to be used for general announcements, release notifications, etc. For example, I intend to send release announcements to both hib...@li... and hib...@li...... Thanks! Steve |
From: Christopher G. S. II (JIRA) <no...@at...> - 2006-08-04 15:47:16
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1848?page=comments#action_23838 ] Christopher G. Stach II commented on HHH-1848: ---------------------------------------------- We've been running this patch and things are working fine. What are the odds we can get it applied for the next release? > A session.lock generates a query with a version column in a joined subclass which does not exist > ------------------------------------------------------------------------------------------------ > > Key: HHH-1848 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1848 > Project: Hibernate3 > Type: Bug > Versions: 3.2.0.cr2 > Environment: Windows XP Pro SP2 (full update) > Java 1.5.0_06 > Postgres 8.1 > postgresql-8.1-404.jdbc3.jar > Annotations 3.2.0 cr1 > hibernatetools-3.1.0.beta5 > Reporter: Eduard Mossinkoff > Priority: Minor > Attachments: HHH-1848.patch, screenshot-1.jpg, screenshot-1.jpg > > > A joined class hierarchy using annotations has a version property named "optlock" like in the annotation reference. > The session factory in the Eclipse Hibernate console shows the joined subclass and it contains the "id" and "version" properties inherited from its superclass. The generated schema only has the version property in the table representing the root entity. The subclass has no "optlock" column. Now when a session.lock() is called with an instance of the subclass as its parameter and lockmode "UPGRADE", a query is generated including the "optlock" column on the subclass table which doesn't exist in the schema. > The root entity, only showing the relevant properties > @Entity > @Inheritance(strategy = InheritanceType.JOINED) > @AccessType("field") > public class ModelObject implements Serializable, AccessControl { > private static final long serialVersionUID = 2354579396538279696L; > transient public static final int STORAGE_COSTS = 10; > @Id > @GeneratedValue(generator = "system-uuid") > @GenericGenerator(name = "system-uuid", strategy = "uuid") > private String id; > @Version > @Column(name="optlock") > private Integer version; > } > A sub class > @Entity > @AccessType("field") > public class Item extends ModelObject implements Cloneable, Serializable { > } > @Entity > @AccessType("field") > public class Domain extends Item { > protected String domainId = null; > } > @Entity > @AccessType("field") > public class UserDomain extends Domain { > private long lastLoginDate; > } > The Hibernate console shows: > org.across.model.UserDomain > +id:java.lang.String > +version:java.lang.Integer > The database table of ModelObject > CREATE TABLE dev.modelobject > ( > id varchar(255) NOT NULL, > optlock int4, > acl_id varchar(255), > CONSTRAINT modelobject_pkey PRIMARY KEY (id), > CONSTRAINT fk78ba6fa841f3e430 FOREIGN KEY (acl_id) > REFERENCES dev.acl (id) MATCH SIMPLE > ON UPDATE NO ACTION ON DELETE NO ACTION > ) > WITHOUT OIDS; > ALTER TABLE dev.modelobject OWNER TO across; > The UserDomain table > CREATE TABLE dev.userdomain > ( > id varchar(255) NOT NULL, > lastlogindate int8 NOT NULL, > CONSTRAINT userdomain_pkey PRIMARY KEY (id), > CONSTRAINT fkbbd6448faf7c2769 FOREIGN KEY (id) > REFERENCES dev."domain" (id) MATCH SIMPLE > ON UPDATE NO ACTION ON DELETE NO ACTION > ) > WITHOUT OIDS; > ALTER TABLE dev.userdomain OWNER TO across; > The query generated when calling session.lock(userDomain, LockMode.UPGRADE); where userDomain is an instance created in a different session that was closed. > Hibernate: select id from dev.UserDomain where id =? and optlock =? for update > 7625 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 42703 > 7625 [main] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: column "optlock" does not exist > The "optlock" column is not present in the UserDomain table only in the ModelObject table. > The question is, is the generated query wrong or is the Hibernate Eclipse tool generating a wrong schema. -- 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: Scott M. (JIRA) <no...@at...> - 2006-08-04 15:39:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=comments#action_23837 ] Scott Marlow commented on HHH-1740: ----------------------------------- Frank, Can you please attach the instrumented class file org.hibernate.test.instrument.domain.Document from the successful hibernate-3.1.2 test run. This file should be in the Hibernate3/build/testclasses/org/hibernate/test/instrument/domain/ folder after running the junitinstrument task. > Build-time instrumentation breaks lazy="proxy" > ---------------------------------------------- > > Key: HHH-1740 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2 > Reporter: Frank Grimes > Priority: Critical > Attachments: Document.class, HHH-1740.diff > > > I have a mapping that contains a many-to-one lazy="proxy". > This alone works fine: I see $$EnhancerByCGLIB$$ as the type when I do a load > Once I add a lazy property to the mapping and do build-time cglib enhancement, it breaks. > Not only is the lazy property listed in $CGLIB_READ_WRITE_CALLBACK, but also my lazy="proxy" association. (i.e. no more proxy object) > This works fine in hibernate-3.1.2. > This was originally brought up here: http://forums.hibernate.org/viewtopic.php?t=958881 > Please let me know if more info or a test case is 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 |
From: Scott M. (JIRA) <no...@at...> - 2006-08-04 15:36:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=all ] Scott Marlow updated HHH-1740: ------------------------------ Attachment: Document.class Attached is the output of instrumenting the class org.hibernate.test.instrument.domain.Document under with the current Hibernate 3.2.x head source. I would like to compare this against the Hibernate 3.1.x class file org.hibernate.test.instrument.domain.Document. > Build-time instrumentation breaks lazy="proxy" > ---------------------------------------------- > > Key: HHH-1740 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2 > Reporter: Frank Grimes > Priority: Critical > Attachments: Document.class, HHH-1740.diff > > > I have a mapping that contains a many-to-one lazy="proxy". > This alone works fine: I see $$EnhancerByCGLIB$$ as the type when I do a load > Once I add a lazy property to the mapping and do build-time cglib enhancement, it breaks. > Not only is the lazy property listed in $CGLIB_READ_WRITE_CALLBACK, but also my lazy="proxy" association. (i.e. no more proxy object) > This works fine in hibernate-3.1.2. > This was originally brought up here: http://forums.hibernate.org/viewtopic.php?t=958881 > Please let me know if more info or a test case is 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 |
From: mauricio g. (JIRA) <no...@at...> - 2006-08-04 14:34:16
|
create area in svn for translation of hibernate reference for the Portuguese of Brazil -------------------------------------------------------------------------------------- Key: HHH-1974 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1974 Project: Hibernate3 Type: Improvement Components: documentation Environment: Hibernate 3.x Reporter: mauricio gamarra Attachments: hibernate_reference.zip, pt_br.zip I am part of a group of people that made the translation of hibernate reference for the Portuguese .Brazil . I would like to know as we can be including this translation in the distribution of hibernate. The translation already this in the format xml of docbock and this being maked in ant. I made dowload of hibernate in svn and used the documentation in English as model for the translation for the Portuguese. The almost complete work already this, lacking only 4 chapters. We have worked intensely to conclude them the possible fastest work. Please they pass me instructions of as to be placing the archives in svn I am sent xml and the pdf for your analyzes -- 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: Alexander B. (JIRA) <no...@at...> - 2006-08-04 12:18:14
|
Unicode characters are not correctly stored in MSSQL ---------------------------------------------------- Key: HHH-1973 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1973 Project: Hibernate3 Type: Bug Components: core Versions: 3.2.0.cr2 Environment: MSSQL Reporter: Alexander Borovsky Need to use nvarchar instread varchar and ntext instead text for generate schema (MSSQL dialect modification) -- 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-08-04 08:45:12
|
Allowed autodetect Many-to-Many in UI/Ant ----------------------------------------- Key: HBX-722 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-722 Project: Hibernate Tools Type: New Feature Components: eclipse, ant Versions: 3.2beta6 Reporter: Max Rydahl Andersen Fix For: 3.2beta7 core supports auto detection of many-to-many; just need to expose the flag to enable it in ant/eclipse. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Max R. A. (JIRA) <no...@at...> - 2006-08-04 08:43:17
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-584?page=all ] Max Rydahl Andersen closed HBX-584: ----------------------------------- Fix Version: 3.2beta7 Resolution: Fixed Two different issues, but both should be fixed in hibernate tools core now. > hbm2java creates two default constructors > ----------------------------------------- > > Key: HBX-584 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-584 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1beta4 > Reporter: shabs shabalot > Priority: Minor > Fix For: 3.2beta7 > > > hbm2java creates two default constructors when the mapping file has just one field. > http://forum.hibernate.org/viewtopic.php?t=955225 -- 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-08-04 08:43:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-132?page=all ] Max Rydahl Andersen closed HBX-132: ----------------------------------- Fix Version: 3.2beta7 (was: 3.2LATER) Resolution: Fixed reverse engineering strategy now supports this. not exposed in ui/ant yet. > Support many-to-many > -------------------- > > Key: HBX-132 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-132 > Project: Hibernate Tools > Type: New Feature > Components: reverse-engineer > Reporter: Max Rydahl Andersen > Fix For: 3.2beta7 > > > if a table just contains two primary keys then add them as a many-to-many in the mappings. -- 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-08-04 08:36:12
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1972?page=all ] Max Rydahl Andersen closed HHH-1972: ------------------------------------ Resolution: Duplicate Duplicated. Creating new cases for the same thing doesn't make it easier for us to manage. > Expression.in on component object gives parameters til SQL in wrong order. > -------------------------------------------------------------------------- > > Key: HHH-1972 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1972 > Project: Hibernate3 > Type: Bug > Components: query-criteria > Versions: 3.1.2 > Environment: Development in IntellIJ IDEA 4.5.3 > Database:Oracle 10g Enteprise Edition release 10.1.0.2.0 > Reporter: Thomas Andersen > Attachments: HibernateBug.zip > > > I'm using an Expression.in on a component class with two attributes (one Long and one String). When executing the code I an empty list. > When using the generated SQL in DBVisualizer adding the variables it returns the expectet list. > Debug log level and reveals (in sample project: > Parameters are bound in the wrong order: > Paramters are bound > ... where (this_.ejerlavskode, this_.matrikelnr) in ((9999, 9999), (01, 03)) > should be 9999, 01, 9999, 03 according to > ... where (this_.ejerlavskode, this_.matrikelnr) in ((9999, 01), (9999, 03)) > Parameter pairs are by class Matrikelbetegnelse(ejerlavskode=9999, matrikenr=01) > I have made a small sample project: > The project contains three classes BugTest , Main and Component. > I have included a sql.ddl file with the create table, inserts of testdata, etc. > You have to modify the "hibernate.test.xml" to include your URL, USER, PASSWORD and SCHEMA. > The BugTest main method contains two methods: > - one 'testExpectedResult()' for the expectet result using Expression.sql(...) which works, but demands more code. > SQL: from tan.main_table this_ where (this_.longValue, this_.stringValue) in ((?,?), (?,?)) > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9998' to parameter: 1 > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '02' to parameter: 2 > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9996' to parameter: 3 > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '04' to parameter: 4 > - two 'testBugResult()' for the incorrect result using Expression.in(...) which does not work, but is more elegant. > SQL: from tan.main_table this_ where (this_.longValue, this_.stringValue) in ((?, ?), (?, ?)) > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9998' to parameter: 1 > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9996' to parameter: 2 > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '02' to parameter: 3 > DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '04' to parameter: 4 > The generated SQL is the same using either statement. > Best regards, > Thomas > P.S. I reported this problem on june 12'th (key=HHH-1832), but haven't heard anything. -- 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 A. (JIRA) <no...@at...> - 2006-08-04 08:25:13
|
Expression.in on component object gives parameters til SQL in wrong order. -------------------------------------------------------------------------- Key: HHH-1972 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1972 Project: Hibernate3 Type: Bug Components: query-criteria Versions: 3.1.2 Environment: Development in IntellIJ IDEA 4.5.3 Database:Oracle 10g Enteprise Edition release 10.1.0.2.0 Reporter: Thomas Andersen Attachments: HibernateBug.zip I'm using an Expression.in on a component class with two attributes (one Long and one String). When executing the code I an empty list. When using the generated SQL in DBVisualizer adding the variables it returns the expectet list. Debug log level and reveals (in sample project: Parameters are bound in the wrong order: Paramters are bound ... where (this_.ejerlavskode, this_.matrikelnr) in ((9999, 9999), (01, 03)) should be 9999, 01, 9999, 03 according to ... where (this_.ejerlavskode, this_.matrikelnr) in ((9999, 01), (9999, 03)) Parameter pairs are by class Matrikelbetegnelse(ejerlavskode=9999, matrikenr=01) I have made a small sample project: The project contains three classes BugTest , Main and Component. I have included a sql.ddl file with the create table, inserts of testdata, etc. You have to modify the "hibernate.test.xml" to include your URL, USER, PASSWORD and SCHEMA. The BugTest main method contains two methods: - one 'testExpectedResult()' for the expectet result using Expression.sql(...) which works, but demands more code. SQL: from tan.main_table this_ where (this_.longValue, this_.stringValue) in ((?,?), (?,?)) DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9998' to parameter: 1 DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '02' to parameter: 2 DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9996' to parameter: 3 DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '04' to parameter: 4 - two 'testBugResult()' for the incorrect result using Expression.in(...) which does not work, but is more elegant. SQL: from tan.main_table this_ where (this_.longValue, this_.stringValue) in ((?, ?), (?, ?)) DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9998' to parameter: 1 DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '9996' to parameter: 2 DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '02' to parameter: 3 DEBUG [...type.NullableType.nullSafeSet(NullableType.java:79)] binding '04' to parameter: 4 The generated SQL is the same using either statement. Best regards, Thomas P.S. I reported this problem on june 12'th (key=HHH-1832), but haven't heard anything. -- 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-08-04 08:22:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1971?page=all ] Christian Bauer resolved HHH-1971: ---------------------------------- Resolution: Rejected http://forum.hibernate.org/ > GenericJDBCException: Cannot release connection > ----------------------------------------------- > > Key: HHH-1971 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1971 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.2.0.cr3 > Environment: MySQL 4.1.19 > Tomcat 5.5.15 > Reporter: Gamigin > > Original Estimate: 2 days > Remaining: 2 days > > Caused by: org.hibernate.exception.GenericJDBCException: Cannot release connection > at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) > at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) > at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) > at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) > at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:449) > at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:400) > at org.hibernate.jdbc.ConnectionManager.afterTransaction(ConnectionManager.java:287) > at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:241) > at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:417) > at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1577) > at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283) > at [...my code...] > Caused by: java.sql.SQLException: Already closed. > at org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(PoolableConnection.java:77) > at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:180) > at org.hibernate.connection.DatasourceConnectionProvider.closeConnection(DatasourceConnectionProvider.java:74) > at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:445) > ... 54 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: Max R. A. (JIRA) <no...@at...> - 2006-08-04 06:37:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1968?page=comments#action_23830 ] Max Rydahl Andersen commented on HHH-1968: ------------------------------------------ did this fix also make it so bytecode enhancement is not needed at sf creation time if you have already done the instrumentation ? > unify bytecode instrumentation > ------------------------------ > > Key: HHH-1968 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1968 > Project: Hibernate3 > Type: Improvement > Components: core > Reporter: Steve Ebersole > Assignee: Steve Ebersole > Fix For: 3.2.0.ga > > > Currently there is completely seperate code (with much duplication) to handle instrumenting a class via ant tasks and via transformation (i.e. classloader). Conceptually these are very similiar constructs. Centralize and re-use... -- 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: Gamigin (JIRA) <no...@at...> - 2006-08-04 03:32:16
|
GenericJDBCException: Cannot release connection ----------------------------------------------- Key: HHH-1971 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1971 Project: Hibernate3 Type: Bug Components: core Versions: 3.2.0.cr3 Environment: MySQL 4.1.19 Tomcat 5.5.15 Reporter: Gamigin Caused by: org.hibernate.exception.GenericJDBCException: Cannot release connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:449) at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:400) at org.hibernate.jdbc.ConnectionManager.afterTransaction(ConnectionManager.java:287) at org.hibernate.jdbc.JDBCContext.afterNontransactionalQuery(JDBCContext.java:241) at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:417) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1577) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283) at [...my code...] Caused by: java.sql.SQLException: Already closed. at org.apache.tomcat.dbcp.dbcp.PoolableConnection.close(PoolableConnection.java:77) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:180) at org.hibernate.connection.DatasourceConnectionProvider.closeConnection(DatasourceConnectionProvider.java:74) at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:445) ... 54 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: Steve E. (JIRA) <no...@at...> - 2006-08-03 21:06:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1968?page=all ] Steve Ebersole closed HHH-1968: ------------------------------- Resolution: Fixed trunk and 3.2 branch > unify bytecode instrumentation > ------------------------------ > > Key: HHH-1968 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1968 > Project: Hibernate3 > Type: Improvement > Components: core > Reporter: Steve Ebersole > Assignee: Steve Ebersole > Fix For: 3.2.0.ga > > > Currently there is completely seperate code (with much duplication) to handle instrumenting a class via ant tasks and via transformation (i.e. classloader). Conceptually these are very similiar constructs. Centralize and re-use... -- 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: Jara C. (JIRA) <no...@at...> - 2006-08-03 20:41:14
|
Cascade delete on one-to-one fail with "could not get a field value by reflection getter of .." ----------------------------------------------------------------------------------------------- Key: HHH-1970 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1970 Project: Hibernate3 Type: Bug Components: metamodel Versions: 3.1.2 Reporter: Jara Cesnek Two classes with relation one-to-to. When deleting exception is thrown. After degrade relation on one-to-many all get worked. ---------First --------------- @IdClass(DOGaa_subjekt_dopln.DOGaa_subjekt_doplnPk.class) @MappedSuperclass public abstract class DOGaa_subjekt_dopln extends DOParent implements DOHistorizableMain { ... /** * OneToOne */ @OneToOne(mappedBy="one_aa_subjekt_dopln") protected DOaa_subjekt one_aa_subjekt; @IgnoreProperty public DOaa_subjekt getOneDOaa_subjekt() { return this.one_aa_subjekt; } public void setOneDOaa_subjekt(DOaa_subjekt aa_subjekt) { this.one_aa_subjekt = aa_subjekt; } @Embeddable public static class DOGaa_subjekt_doplnPk implements Serializable { protected Integer id_pripad; public Integer getId_pripad() { return id_pripad; } public void setId_pripad(Integer id_pripad) { this.id_pripad = id_pripad; } protected Integer id_partner; public Integer getId_partner() { return id_partner; } public void setId_partner(Integer id_partner) { this.id_partner = id_partner; } ... } } ---------Second --------------- @XmlType(name="DOaa_subjekt",namespace="http://aa.ws.daisy.marbes.cz") @IdClass(DOGaa_subjekt.DOGaa_subjektPk.class) @MappedSuperclass public abstract class DOGaa_subjekt extends DOParent implements DOHistorizableMain { .... /** * OneToOne */ @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY) @JoinColumns({ @JoinColumn(name="id_partner", referencedColumnName="id_partner", unique=false, nullable=false, insertable=false, updatable=false), @JoinColumn(name="id_pripad", referencedColumnName="id_pripad", unique=false, nullable=false, insertable=false, updatable=false) }) protected DOaa_subjekt_dopln one_aa_subjekt_dopln; @IgnoreProperty public DOaa_subjekt_dopln getOneDOaa_subjekt_dopln() { return this.one_aa_subjekt_dopln; } public void setOneDOaa_subjekt_dopln(DOaa_subjekt_dopln aa_subjekt_dopln) { this.one_aa_subjekt_dopln = aa_subjekt_dopln; } @Embeddable public static class DOGaa_subjektPk implements Serializable { protected Integer id_pripad; public Integer getId_pripad() { return id_pripad; } public void setId_pripad(Integer id_pripad) { this.id_pripad = id_pripad; } protected Integer id_partner; public Integer getId_partner() { return id_partner; } public void setId_partner(Integer id_partner) { this.id_partner = id_partner; } ... } } ----------------Exception----------------- 2006-08-03 12:04:58,289 WARN http-8090-Processor2:pubal [BLKernel3] Exception invoking fellowship kernel3.editforms.savedelta org.springframework.orm.hibernate3.HibernateSystemException: could not get a field value by reflection getter of cz.marbes.daisy.modules.aa.mdo.DOGaa_subjekt_dopln$DOGaa_subjekt_doplnPk.id_pripad; nested exception is org.hibernate.PropertyAccessException: could not get a field value by reflection getter of cz.marbes.daisy.modules.aa.mdo.DOGaa_subjekt_dopln$DOGaa_subjekt_doplnPk.id_pripad org.hibernate.PropertyAccessException: could not get a field value by reflection getter of cz.marbes.daisy.modules.aa.mdo.DOGaa_subjekt_dopln$DOGaa_subjekt_doplnPk.id_pripad at org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:35) at org.hibernate.tuple.AbstractComponentTuplizer.getPropertyValue(AbstractComponentTuplizer.java:61) at org.hibernate.tuple.AbstractComponentTuplizer.getPropertyValues(AbstractComponentTuplizer.java:67) at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(PojoComponentTuplizer.java:98) at org.hibernate.type.ComponentType.getPropertyValues(ComponentType.java:307) at org.hibernate.type.ComponentType.getHashCode(ComponentType.java:158) at org.hibernate.engine.EntityKey.generateHashCode(EntityKey.java:103) at org.hibernate.engine.EntityKey.<init>(EntityKey.java:47) at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:76) ------------------RESEARCH --------- In hibernate is wrong assigned Entity with his IdClass. For DOaa_subjekt_dopln there is key DOaa_subjekt_doplnPk but for entity DOaa_subjekt there is key DOaa_subjekt_doplnPk too!! Or should I generated just one IdClass for all one-to-one entities ?? -- 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-08-03 20:26:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-584?page=comments#action_23828 ] Max Rydahl Andersen commented on HBX-584: ----------------------------------------- hehe yes, definitly misuse. willl need to find a way to detect it. until then fix the misuse or generate code from the hbm.xml files > hbm2java creates two default constructors > ----------------------------------------- > > Key: HBX-584 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-584 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1beta4 > Reporter: shabs shabalot > Priority: Minor > > > hbm2java creates two default constructors when the mapping file has just one field. > http://forum.hibernate.org/viewtopic.php?t=955225 -- 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: Ryan N. (JIRA) <no...@at...> - 2006-08-03 20:26:15
|
Table aliases constructed incorrectly from HQL when JOIN is used when selecting multiple objects ------------------------------------------------------------------------------------------------ Key: HHH-1969 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1969 Project: Hibernate3 Type: Bug Components: query-hql Versions: 3.2.0.cr3 Environment: MS SQL Server 2000, JDK1.5, Hibernate 3.2cr3 Reporter: Ryan Norris Priority: Critical When constructing a query to retrieve a "cross" join (cartesian product) of multiple objects and a JOIN is used, the table aliases for the cartesian objects are misplaced during query translation: Example: SELECT p, c, u FROM Practice p, Publication c, UserGroup u JOIN p.locations AS l WITH l.practice = p Results in a translated SQL query of: select practice0_.practice_id as practice1_54_0_, publicatio1_.publication_id as publicat1_56_1_, usergroup2_.usergroup_id as usergroup1_59_2_, practice0_.brand_id as brand4_54_0_, practice0_.practice_nm as practice2_54_0_, practice0_.active_flg as active3_54_0_, publicatio1_.admin_flg as admin2_56_1_, publicatio1_.practice_id as practice6_56_1_, publicatio1_.usergroup_id as usergroup7_56_1_, publicatio1_.inbox_user_id as inbox8_56_1_, publicatio1_.publication_nm as publicat3_56_1_, publicatio1_.location_id as location9_56_1_, publicatio1_.visible_flg as visible4_56_1_, publicatio1_.active_flg as active5_56_1_, usergroup2_.usergroup_nm as usergroup2_59_2_, usergroup2_.icon as icon59_2_ from dbo.practice practice0_ inner join dbo.location locations3_ on practice0_.practice_id=locations3_.practice_id and ( locations3_.practice_id=practice0_.practice_id ), dbo.publication publicatio1_, dbo.usergroup usergroup2_ Notice how the table aliases for publication and usergroup are incorrectly placed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Steve E. (JIRA) <no...@at...> - 2006-08-03 19:58:14
|
unify bytecode instrumentation ------------------------------ Key: HHH-1968 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1968 Project: Hibernate3 Type: Improvement Components: core Reporter: Steve Ebersole Assigned to: Steve Ebersole Fix For: 3.2.0.ga Currently there is completely seperate code (with much duplication) to handle instrumenting a class via ant tasks and via transformation (i.e. classloader). Conceptually these are very similiar constructs. Centralize and re-use... -- 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: Bill S. (JIRA) <no...@at...> - 2006-08-03 19:08:17
|
Incorrect join formed when for one-to-one relationship to subclass in a mixed table/class table/subclass mapping strategy ------------------------------------------------------------------------------------------------------------------------- Key: HHH-1967 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1967 Project: Hibernate3 Type: Bug Versions: 3.2.0.cr2 Environment: Hibernate 3.1/3.2 Sybase Reporter: Bill Swayze I have an inheritance hierarchy that I am trying to implement using the table per class and table per subclass mix strategy. A particular subclass (joined) has a unique foreign key one-to-one (mapped as many-to-one per documentation) association with another class. The sql joins generated are being formed with the base class table alias name and the subclass's column name resulting in invalid column name errors from the database. There doesn't appear to be anything in the code to discriminate whether the associations are to base or the subclass. -- 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-08-03 15:50:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-406?page=comments#action_23827 ] Emmanuel Bernard commented on ANN-406: -------------------------------------- Can you provide a runnable test case? > @Embedded can not be used with Generics > --------------------------------------- > > Key: ANN-406 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-406 > Project: Hibernate Annotations > Type: Bug > Versions: 3.2.0.cr1 > Environment: Hibernate 3.1.2 Oracle 10g > Reporter: Michael Kantarovich > Priority: Critical > > > The following: > @Embedded > MyClass<MyGeneric> getMyClass(){ > return myClass; > } > will result and exception: > java.lang.IllegalStateException: Property myClass has an unbound type and no explicit target entity. > at org.hibernate.cfg.AnnotationBinder.addElementsOfAClass(AnnotationBinder.java:938) > at org.hibernate.cfg.AnnotationBinder.getElementsToProcess(AnnotationBinder.java:788) > at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:614) > at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:353) > at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:265) > at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1034) > at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56) > at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:226) > at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:45) > at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:160) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) > at org.apache.tools.ant.Project.executeTarget(Project.java:1185) > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) > at org.apache.tools.ant.Project.executeTargets(Project.java:1068) > at org.apache.tools.ant.Main.runBuild(Main.java:668) > at org.apache.tools.ant.Main.startAnt(Main.java:187) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17) -- 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 G. (JIRA) <no...@at...> - 2006-08-03 15:03:20
|
Eqal rows in key and many-to-many mapping causes a "org.hibernate.MappingException: Repeated column in mapping for collection:" -------------------------------------------------------------------------------------------------------------------------------- Key: HHH-1966 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1966 Project: Hibernate3 Type: Bug Reporter: Martin Graml There are 2 Tables Table A contains Project items with different attributes Table B contains the linking between this Project items Each item can have 0..n Subitems <hibernate-mapping> <class name="ProjectItem"table="project_items"> <composite-id> <key-property name="ItemNumber" type="string" column="Item_Number" /> <key-property name="ProjectNumber" type="string" column="Project_Number" /> </composite-id> .... .... <map name="SubItems" table="Project_Item_Linking" sort="natural"> <key> <column name="is_part_of" /> <column name="Project_Number" /> </key> <index column="Position" type="integer" /> <many-to-many class="ProjectItem"> <column name="Item_Number" /> <column name="Project_Number" /> </many-to-many> </map> -- 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 |