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: Lauri V. (JIRA) <no...@at...> - 2006-08-03 14:37:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-584?page=comments#action_23826 ] Lauri Vasko commented on HBX-584: --------------------------------- two default constructors are generated in case when hibernate.reveng.xml defines generator class for tables' primary-key like so: <hibernate-reverse-engineering> <table name="SUBBJEKTIDE_SEOS"> <primary-key> <generator class="acme.TableNameSequenceGenerator"> </generator> </primary-key> </table> </hibernate-reverse-engineering> AND when you have composite-id for that table (*.hbm.xml wold look something like that): <?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 3.08.2006 16:31:03 by Hibernate Tools 3.2.0.beta6a --> <hibernate-mapping> <class name="acme.SubjektideSeos" table="SUBJEKTIDE_SEOS"> <composite-id name="id" class="acme.SubjektideSeosId"> <key-many-to-one name="subjektideSeoseLiik" class="acme.SubjektideSeoseLiik"> <column name="SUBJEKTIDE_SEOSE_LIIK_ID" precision="22" scale="0" /> </key-many-to-one> <key-many-to-one name="subjekt1" class="acme.Subjekt"> <column name="SUBJEKT1_ID" precision="22" scale="0" /> </key-many-to-one> <key-many-to-one name="subjekt2" class="acme.Subjekt"> <column name="SUBJEKT2_ID" precision="22" scale="0" /> </key-many-to-one> </composite-id> <property name="ametikoht" type="string"> <column name="AMETIKOHT" length="100" /> </property> </class> </hibernate-mapping> and version of Hibernate Tools is as shows the autogenerated comment 3.2.0.beta6a. Indeed this is case of misuse, because there is no need to define generator for composite-id (at least one didn't get generated into hbm.xml -- as you see above). Nevertheless, misuse or not, Hibernate Tools should generate .java files that compile. > 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: vision m. (JIRA) <no...@at...> - 2006-08-03 10:30:14
|
Alias Error when SELECT object.id FOR UPDATE OF object.ID --------------------------------------------------------- Key: HHH-1965 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1965 Project: Hibernate3 Type: Bug Components: core Versions: 3.1.3 Environment: Hibernate-Version: 3.1.3 ORACLE10g Reporter: vision matford On Oracle you can do this: SELECT object.ID FROM TABLE object FOR UPDATE OF object.ID giving you back the id and locking lines. But with Hibernate it's not working. Query q = session.createQuery("SELECT object.ID FROM TABLE object"); q.setLockMode("object",LockMode.UPGRADE); q.list(); This code generate the following error: Exception in thread "Thread-0" java.lang.IllegalArgumentException: alias not found: obj at org.hibernate.loader.hql.QueryLoader.applyLocks(QueryLoader.java:299) at org.hibernate.loader.Loader.preprocessSQL(Loader.java:189) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1552) at org.hibernate.loader.Loader.doQuery(Loader.java:661) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) at org.hibernate.loader.Loader.doList(Loader.java:2145) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029) at org.hibernate.loader.Loader.list(Loader.java:2024) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:375) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:308) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:153) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1106) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) What's working actually : Query q = session.createQuery("SELECT object FROM TABLE object"); q.setLockMode("object",LockMode.UPGRADE); q.list(); -- 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 09:02:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-721?page=all ] Max Rydahl Andersen closed HBX-721: ----------------------------------- Resolution: Fixed > resourcebundle with incorrect In annotation > ------------------------------------------- > > Key: HBX-721 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-721 > Project: Hibernate Tools > Type: Bug > Components: hbm2seam > Versions: 3.2beta6 > Reporter: Max Rydahl Andersen > Fix For: 3.2beta7 > > > see http://jira.jboss.com/jira/browse/JBIDE-345 -- 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 09:00:15
|
resourcebundle with incorrect In annotation ------------------------------------------- Key: HBX-721 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-721 Project: Hibernate Tools Type: Bug Components: hbm2seam Versions: 3.2beta6 Reporter: Max Rydahl Andersen Fix For: 3.2beta7 see http://jira.jboss.com/jira/browse/JBIDE-345 -- 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: Michael K. (JIRA) <no...@at...> - 2006-08-03 08:50:13
|
@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: Frank G. (JIRA) <no...@at...> - 2006-08-02 20:26:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=comments#action_23825 ] Frank Grimes commented on HHH-1740: ----------------------------------- FYI, I am still getting the failure with TRUNK. (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: 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: Frank G. (JIRA) <no...@at...> - 2006-08-02 20:12:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=comments#action_23824 ] Frank Grimes commented on HHH-1740: ----------------------------------- Scott, I tested using the junitinstrument target. I don't think that the junitsingle target calls the instrument target... so that might explain why you aren't getting the failure. In any case, I'll check it out from TRUNK to see if it might have been fixed. (perhaps by HHH-1931) Thanks. > 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: 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: Luciano G. d. S. (JIRA) <no...@at...> - 2006-08-02 20:04:16
|
Almost impossible to subclassing DetachedCriteria ------------------------------------------------- Key: HHH-1964 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1964 Project: Hibernate3 Type: Improvement Components: query-criteria Versions: 3.2.0.cr3 Environment: 3.2 cr2 Reporter: Luciano Greiner dos Santos Hi. I am developing a new Architeture for a telecom company, and it will user Hibernate as ORM abstraction. I did a DetachedCriteria generator, and it worked well unless for some subcriterias issues. I looked at DetachedCriteria source file and i thought it would be easier to extend it or create a new implementation based on its interface. Well, but DetachedCriteria is a class, not an Interface and it does not implement an operations interface. Well, so i could just subclass it, but it is almost impossible because of its field and method access modifiers. Shouldn't DetachedCriteria be an Interface or at least have an operations Interface so that i can replace its use with my own implementation like Criteria? If it is not possible, couldn't we turn DetachedCriteria class more suitable for subclassing? Thank you, and i am available to help if 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: Max R. A. (JIRA) <no...@at...> - 2006-08-02 16:04:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-717?page=all ] Max Rydahl Andersen closed HBX-717: ----------------------------------- Fix Version: 3.2beta7 Resolution: Duplicate > hbm2java generate wrong class description when there is common scope class description > -------------------------------------------------------------------------------------- > > Key: HBX-717 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-717 > Project: Hibernate Tools > Type: Bug > Components: ant > Versions: 3.2beta6 > Environment: Window XP, java, Jboss > Reporter: wanhing > Priority: Critical > Fix For: 3.2beta7 > > > I have the following mapping definition: > ============================================================================================ > <meta attribute="class-description"> > @author Hibernate CodeGenerator > </meta> > <class name="Product"> > <meta attribute="class-description" inherit="false"> > @jboss-net.xml-schema urn="tms:Product" > </meta> > <id name="id" column="ProductId" type="long" > > <generator class="native"/> > </id> > <version name="version" /> > <property name="name" type="string" length="40" not-null="true" column="product"/> > </class> > <class name="ExpenseMethod"> > <meta attribute="class-description"> > @jboss-net.xml-schema urn="tms:ExpenseMethod" > </meta> > <id name="id" column="ExpenseMethodId" type="long" > > <generator class="native"/> > </id> > <version name="version" /> > <property name="name" type="string" length="15" not-null="true" column="expensemethod"/> > </class> > <class name="CostCenter"> > <meta attribute="class-description"> > @jboss-net.xml-schema urn="tms:CostCenter" > </meta> > <id name="id" column="CostCenterId" type="long" > > <generator class="native"/> > </id> > <version name="version" /> > <property name="name" type="string" length="40" not-null="true" column="costcenter"/> > </class> > ================================================================================== > Note that I have a <meta attribute="class-description"> defined outside any class and also one that defined inside each class. This resulted a wrong class annotation in all the generated files as follows: > ======================================================================================= > package com.adis.service.timesheet; > // Generated 2/08/2006 17:36:09 by Hibernate Tools 3.2.0.beta6a > /** > * @author Hibernate CodeGenerator > * > * @jboss-net.xml-schema urn="tms:Product" > * > * @jboss-net.xml-schema urn="tms:ExpenseMethod" > * > * @jboss-net.xml-schema urn="tms:ExpenseMethod" > * > * @jboss-net.xml-schema urn="tms:CostCenter" > * > * @jboss-net.xml-schema urn="tms:CostCenter" > * > */ > public class Product implements java.io.Serializable { > ... > } > =================================================================== > As you can see above the all the individual class description are joint together and there is also a duplicate for each class description. > This problem doesn't exist if I don't have the common class description outside the classes. -- 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-02 15:10:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-719?page=all ] Max Rydahl Andersen closed HBX-719: ----------------------------------- Fix Version: 3.2beta7 Resolution: Fixed this is actualyly due to a bug in hibernate3 core. Really strange it was never discovered before - thanks. Fixed in HEAD and 3.2 > CLONE -hbm2java generate wrong class description when there is common scope class description > --------------------------------------------------------------------------------------------- > > Key: HBX-719 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-719 > Project: Hibernate Tools > Type: Bug > Components: ant > Versions: 3.2beta6 > Environment: Window XP, java, Jboss > Reporter: wanhing > Priority: Critical > Fix For: 3.2beta7 > > > I have the following mapping definition: > ============================================================================================ > <meta attribute="class-description"> > @author Hibernate CodeGenerator > </meta> > <class name="Product"> > <meta attribute="class-description" inherit="false"> > @jboss-net.xml-schema urn="tms:Product" > </meta> > <id name="id" column="ProductId" type="long" > > <generator class="native"/> > </id> > <version name="version" /> > <property name="name" type="string" length="40" not-null="true" column="product"/> > </class> > <class name="ExpenseMethod"> > <meta attribute="class-description"> > @jboss-net.xml-schema urn="tms:ExpenseMethod" > </meta> > <id name="id" column="ExpenseMethodId" type="long" > > <generator class="native"/> > </id> > <version name="version" /> > <property name="name" type="string" length="15" not-null="true" column="expensemethod"/> > </class> > <class name="CostCenter"> > <meta attribute="class-description"> > @jboss-net.xml-schema urn="tms:CostCenter" > </meta> > <id name="id" column="CostCenterId" type="long" > > <generator class="native"/> > </id> > <version name="version" /> > <property name="name" type="string" length="40" not-null="true" column="costcenter"/> > </class> > ================================================================================== > Note that I have a <meta attribute="class-description"> defined outside any class and also one that defined inside each class. This resulted a wrong class annotation in all the generated files as follows: > ======================================================================================= > package com.adis.service.timesheet; > // Generated 2/08/2006 17:36:09 by Hibernate Tools 3.2.0.beta6a > /** > * @author Hibernate CodeGenerator > * > * @jboss-net.xml-schema urn="tms:Product" > * > * @jboss-net.xml-schema urn="tms:ExpenseMethod" > * > * @jboss-net.xml-schema urn="tms:ExpenseMethod" > * > * @jboss-net.xml-schema urn="tms:CostCenter" > * > * @jboss-net.xml-schema urn="tms:CostCenter" > * > */ > public class Product implements java.io.Serializable { > ... > } > =================================================================== > As you can see above the all the individual class description are joint together and there is also a duplicate for each class description. > This problem doesn't exist if I don't have the common class description outside the classes. -- 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-02 15:08:12
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1963?page=all ] Max Rydahl Andersen closed HHH-1963: ------------------------------------ Fix Version: 3.2.0.ga Resolution: Fixed fixed. > meta inheritance broken > ----------------------- > > Key: HHH-1963 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1963 > Project: Hibernate3 > Type: Bug > Components: metamodel > Versions: 3.2.0.cr3 > Reporter: Max Rydahl Andersen > Fix For: 3.2.0.ga > > > see HBX-719 which is caused by getMetas not ensuring to copy-before-mutating the inherited metaattributes resulting in mutating the top-level metaattribute which then result in the root containing all the sub-elements. -- 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-02 15:03:16
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=comments#action_23821 ] Scott Marlow commented on HHH-1740: ----------------------------------- Frank, I applied the testcase patch (against head source) and ran "./build.sh junitsingle -Dtestname=org.hibernate.test.instrument.buildtime.InstrumentTest". The results were: junitsingle: [junit] Running org.hibernate.test.instrument.buildtime.InstrumentTest [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 3.251 sec Could you try the testcase again with the latest Hibernate source (http://www.hibernate.org/6.html#A3) and see if it passes for you also? I also ran the test against the 3.2.0 branch and no failures there either. > 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: 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: Max R. A. (JIRA) <no...@at...> - 2006-08-02 14:17:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-720?page=comments#action_23820 ] Max Rydahl Andersen commented on HBX-720: ----------------------------------------- what kind of code generation are you choosing ? do you have reverse engineering enabled ? did you remember to choose the right console configuration ? > Annotation Configuration Error > ------------------------------ > > Key: HBX-720 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-720 > Project: Hibernate Tools > Type: Bug > Components: reverse-engineer > Versions: 3.2beta6 > Reporter: Manuel Gentile > > > I have the following annotation configuration > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE hibernate-configuration PUBLIC > "-//Hibernate/Hibernate Configuration DTD 3.0//EN" > "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> > <hibernate-configuration> > <session-factory> > <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property> > <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost</property> > <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property> > <property name="hbm2ddl.auto">create</property> > > <mapping class="..."/> > <mapping class="..."/> > ... > </session-factory> > </hibernate-configuration> > In Hibernate Console Configuration if i disable the enable annotation checkbox and I try to see the classes in the hibernate configurations section I obtaion the followinf error > org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/> (and i think this is right!!!) > If i enable the enable annotation checkbox, I can see the classes and the configuration in the right way > but when I try to run code generation I receive > org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/> (and i think this is NOT right!!!) -- 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: Manuel G. (JIRA) <no...@at...> - 2006-08-02 14:10:13
|
Annotation Configuration Error ------------------------------ Key: HBX-720 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-720 Project: Hibernate Tools Type: Bug Components: reverse-engineer Versions: 3.2beta6 Reporter: Manuel Gentile I have the following annotation configuration <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property> <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost</property> <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property> <property name="hbm2ddl.auto">create</property> <mapping class="..."/> <mapping class="..."/> ... </session-factory> </hibernate-configuration> In Hibernate Console Configuration if i disable the enable annotation checkbox and I try to see the classes in the hibernate configurations section I obtaion the followinf error org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/> (and i think this is right!!!) If i enable the enable annotation checkbox, I can see the classes and the configuration in the right way but when I try to run code generation I receive org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/> (and i think this is NOT right!!!) -- 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-02 14:00:12
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1585?p= age=3Dall ] Scott Marlow updated HHH-1585: ------------------------------ Attachment: InstrumentTask.patch > An instrumented persistent class reckons that a referenced non persistent= class is also instrumented > -------------------------------------------------------------------------= --------------------------- > > Key: HHH-1585 > URL: http://opensource.atlassian.com/projects/hibernate/browse/H= HH-1585 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.2 > Environment: Java 1.4.2, Win2000 > Reporter: Peter Sch=C3=BCtt > Assignee: Scott Marlow > Attachments: InstrumentTask.patch > > > I have a persistent class, which is instrumented because we use access by= field. > This persistent class refers to a non persistent class, which has only pu= blic fields: > public class NonPersistentClass=20 > { > public int field1; > public String field2; > } > This class is not declared in a mapping file and is not instrumented. > ... > The persistent class reckon that "NonPersistentClass" is instrumented. > Decompiled code from Persistent class: > NonPersistentClass obj =3D new NonPersistentClass(); > obj.$cglib_write_field1(1); > ... > String s =3D obj.$cglib_read_field2(); > This is a severe bug. --=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: Scott M. (JIRA) <no...@at...> - 2006-08-02 13:58:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1585?pa= ge=3Dcomments#action_23819 ]=20 Scott Marlow commented on HHH-1585: ----------------------------------- I think that this will be addressed by the fix made for HHH-1931 (fixed in = 3.2.0 branch + head). Will you be able to verify that the code made for HHH-1931 addresses HHH-15= 85? I am attaching the patch to this issue for your convenience. Let me k= now if you will be able to try this. > An instrumented persistent class reckons that a referenced non persistent= class is also instrumented > -------------------------------------------------------------------------= --------------------------- > > Key: HHH-1585 > URL: http://opensource.atlassian.com/projects/hibernate/browse/H= HH-1585 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.2 > Environment: Java 1.4.2, Win2000 > Reporter: Peter Sch=C3=BCtt > Assignee: Scott Marlow > > > I have a persistent class, which is instrumented because we use access by= field. > This persistent class refers to a non persistent class, which has only pu= blic fields: > public class NonPersistentClass=20 > { > public int field1; > public String field2; > } > This class is not declared in a mapping file and is not instrumented. > ... > The persistent class reckon that "NonPersistentClass" is instrumented. > Decompiled code from Persistent class: > NonPersistentClass obj =3D new NonPersistentClass(); > obj.$cglib_write_field1(1); > ... > String s =3D obj.$cglib_read_field2(); > This is a severe bug. --=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: Scott M. (JIRA) <no...@at...> - 2006-08-02 13:51:16
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1585?p= age=3Dall ] Scott Marlow reassigned HHH-1585: --------------------------------- Assign To: Scott Marlow > An instrumented persistent class reckons that a referenced non persistent= class is also instrumented > -------------------------------------------------------------------------= --------------------------- > > Key: HHH-1585 > URL: http://opensource.atlassian.com/projects/hibernate/browse/H= HH-1585 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.2 > Environment: Java 1.4.2, Win2000 > Reporter: Peter Sch=C3=BCtt > Assignee: Scott Marlow > > > I have a persistent class, which is instrumented because we use access by= field. > This persistent class refers to a non persistent class, which has only pu= blic fields: > public class NonPersistentClass=20 > { > public int field1; > public String field2; > } > This class is not declared in a mapping file and is not instrumented. > ... > The persistent class reckon that "NonPersistentClass" is instrumented. > Decompiled code from Persistent class: > NonPersistentClass obj =3D new NonPersistentClass(); > obj.$cglib_write_field1(1); > ... > String s =3D obj.$cglib_read_field2(); > This is a severe bug. --=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: Scott M. (JIRA) <no...@at...> - 2006-08-02 13:42:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1931?page=all ] Scott Marlow resolved HHH-1931: ------------------------------- Fix Version: 3.2.0.ga Resolution: Fixed Fix applied to 3.2.0 branch. > verify that the instrument tasks actually work > ---------------------------------------------- > > Key: HHH-1931 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1931 > Project: Hibernate3 > Type: Task > Components: core > Reporter: Steve Ebersole > Assignee: Scott Marlow > Fix For: 3.2.0.ga, 3.2.1 > Attachments: InstrumentBugTest.zip > > > It appears they may not in all cases. -- 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-02 13:25:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1931?page=all ] Scott Marlow reopened HHH-1931: ------------------------------- should merge fix to 3.2 branch. > verify that the instrument tasks actually work > ---------------------------------------------- > > Key: HHH-1931 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1931 > Project: Hibernate3 > Type: Task > Components: core > Reporter: Steve Ebersole > Assignee: Scott Marlow > Fix For: 3.2.1 > Attachments: InstrumentBugTest.zip > > > It appears they may not in all cases. -- 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-02 13:20:17
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1931?page=all ] Scott Marlow resolved HHH-1931: ------------------------------- Fix Version: 3.2.1 Resolution: Fixed org.hibernate.tool.instrument.cglib.InstrumentTask was changed (in head) to not instrument methods that take classes as parameters that are not the target instrumented class. > verify that the instrument tasks actually work > ---------------------------------------------- > > Key: HHH-1931 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1931 > Project: Hibernate3 > Type: Task > Components: core > Reporter: Steve Ebersole > Assignee: Scott Marlow > Fix For: 3.2.1 > Attachments: InstrumentBugTest.zip > > > It appears they may not in all cases. -- 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-02 10:35:19
|
meta inheritance broken ----------------------- Key: HHH-1963 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1963 Project: Hibernate3 Type: Bug Components: metamodel Versions: 3.2.0.cr3 Reporter: Max Rydahl Andersen see HBX-719 which is caused by getMetas not ensuring to copy-before-mutating the inherited metaattributes resulting in mutating the top-level metaattribute which then result in the root containing all the sub-elements. -- 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: wanhing (JIRA) <no...@at...> - 2006-08-02 05:45:13
|
CLONE -hbm2java generate wrong class description when there is common scope class description --------------------------------------------------------------------------------------------- Key: HBX-718 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-718 Project: Hibernate Tools Type: Bug Components: ant Versions: 3.2beta6 Environment: Window XP, java, Jboss Reporter: wanhing Priority: Critical I have the following mapping definition: ============================================================================================ <meta attribute="class-description"> @author Hibernate CodeGenerator </meta> <class name="Product"> <meta attribute="class-description" inherit="false"> @jboss-net.xml-schema urn="tms:Product" </meta> <id name="id" column="ProductId" type="long" > <generator class="native"/> </id> <version name="version" /> <property name="name" type="string" length="40" not-null="true" column="product"/> </class> <class name="ExpenseMethod"> <meta attribute="class-description"> @jboss-net.xml-schema urn="tms:ExpenseMethod" </meta> <id name="id" column="ExpenseMethodId" type="long" > <generator class="native"/> </id> <version name="version" /> <property name="name" type="string" length="15" not-null="true" column="expensemethod"/> </class> <class name="CostCenter"> <meta attribute="class-description"> @jboss-net.xml-schema urn="tms:CostCenter" </meta> <id name="id" column="CostCenterId" type="long" > <generator class="native"/> </id> <version name="version" /> <property name="name" type="string" length="40" not-null="true" column="costcenter"/> </class> ================================================================================== Note that I have a <meta attribute="class-description"> defined outside any class and also one that defined inside each class. This resulted a wrong class annotation in all the generated files as follows: ======================================================================================= package com.adis.service.timesheet; // Generated 2/08/2006 17:36:09 by Hibernate Tools 3.2.0.beta6a /** * @author Hibernate CodeGenerator * * @jboss-net.xml-schema urn="tms:Product" * * @jboss-net.xml-schema urn="tms:ExpenseMethod" * * @jboss-net.xml-schema urn="tms:ExpenseMethod" * * @jboss-net.xml-schema urn="tms:CostCenter" * * @jboss-net.xml-schema urn="tms:CostCenter" * */ public class Product implements java.io.Serializable { ... } =================================================================== As you can see above the all the individual class description are joint together and there is also a duplicate for each class description. This problem doesn't exist if I don't have the common class description outside the classes. -- 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: wanhing (JIRA) <no...@at...> - 2006-08-02 05:40:13
|
hbm2java generate wrong class description when there is common scope class description -------------------------------------------------------------------------------------- Key: HBX-717 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-717 Project: Hibernate Tools Type: Bug Components: ant Versions: 3.2beta6 Environment: Window XP, java, Jboss Reporter: wanhing Priority: Critical I have the following mapping definition: ============================================================================================ <meta attribute="class-description"> @author Hibernate CodeGenerator </meta> <class name="Product"> <meta attribute="class-description" inherit="false"> @jboss-net.xml-schema urn="tms:Product" </meta> <id name="id" column="ProductId" type="long" > <generator class="native"/> </id> <version name="version" /> <property name="name" type="string" length="40" not-null="true" column="product"/> </class> <class name="ExpenseMethod"> <meta attribute="class-description"> @jboss-net.xml-schema urn="tms:ExpenseMethod" </meta> <id name="id" column="ExpenseMethodId" type="long" > <generator class="native"/> </id> <version name="version" /> <property name="name" type="string" length="15" not-null="true" column="expensemethod"/> </class> <class name="CostCenter"> <meta attribute="class-description"> @jboss-net.xml-schema urn="tms:CostCenter" </meta> <id name="id" column="CostCenterId" type="long" > <generator class="native"/> </id> <version name="version" /> <property name="name" type="string" length="40" not-null="true" column="costcenter"/> </class> ================================================================================== Note that I have a <meta attribute="class-description"> defined outside any class and also one that defined inside each class. This resulted a wrong class annotation in all the generated files as follows: ======================================================================================= package com.adis.service.timesheet; // Generated 2/08/2006 17:36:09 by Hibernate Tools 3.2.0.beta6a /** * @author Hibernate CodeGenerator * * @jboss-net.xml-schema urn="tms:Product" * * @jboss-net.xml-schema urn="tms:ExpenseMethod" * * @jboss-net.xml-schema urn="tms:ExpenseMethod" * * @jboss-net.xml-schema urn="tms:CostCenter" * * @jboss-net.xml-schema urn="tms:CostCenter" * */ public class Product implements java.io.Serializable { ... } =================================================================== As you can see above the all the individual class description are joint together and there is also a duplicate for each class description. This problem doesn't exist if I don't have the common class description outside the classes. -- 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-02 02:09:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1750?page=all ] Scott Marlow resolved HHH-1750: ------------------------------- Resolution: Fixed The patch looks good, nice job! I applied it to the 3.2 branch and head. > Exception ORA-01000 too many open cursors by generated="insert" > --------------------------------------------------------------- > > Key: HHH-1750 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1750 > Project: Hibernate3 > Type: Bug > Environment: Hibernate3, Oracle10g > Reporter: Andreas Dornhof > Assignee: Scott Marlow > Fix For: 3.2.0.ga > Attachments: HHH-1750.patch > > > When creating more as 300 Object in Oracle with insert="false" and generated="insert" by property - Tag in Mapping-File > causes an ORA-01000 "too many open cursors"... > It is executed using the following Java code: > SessionFactory sessionFactory; > > try { > // Create the SessionFactory from hibernate.cfg.xml > sessionFactory = new Configuration(). > configure(). > buildSessionFactory(); > } catch (Throwable ex) { > // Make sure you log the exception, as it might be swallowed > System.err.println("Initial SessionFactory creation failed." + ex); > throw new ExceptionInInitializerError(ex); > } > > try{ > > for (int i = 0; i <= 301; i++) { > > Session session = sessionFactory.getCurrentSession(); > Transaction tx = session.beginTransaction(); > > Test test = new Test(); > session.save(test); > > tx.commit(); > > } > > } catch (Exception e) { > System.out.println(e.getMessage()+e.getClass().toString()); > } > > And Mapping - File: > <?xml version="1.0"?> > <!DOCTYPE hibernate-mapping PUBLIC > "-//Hibernate/Hibernate Mapping DTD//EN" > "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > > <hibernate-mapping> > <class > name="src.persistence.Test" > table="TEST" > > > > <id name="id" type="java.lang.Long" column="ID" > > > <generator class="sequence"> > <param name="sequence">TEST_SEQ</param> > </generator> > </id> > <property > name="created" > column="CREATED" > type="java.util.Date" > not-null="true" > insert="false" > update="false" > generated="insert" > > > </property> > </class> > </hibernate-mapping> -- 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-02 01:02:13
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1750?page=comments#action_23814 ] Scott Marlow commented on HHH-1750: ----------------------------------- I Installed an Oracle 10G express server and was able to recreate the problem and verify that the patch does fix the issue. I want to check a few more things but will check the fix in soon. Yes, I should be able to apply the patch before the 3.2 release. > Exception ORA-01000 too many open cursors by generated="insert" > --------------------------------------------------------------- > > Key: HHH-1750 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1750 > Project: Hibernate3 > Type: Bug > Environment: Hibernate3, Oracle10g > Reporter: Andreas Dornhof > Assignee: Scott Marlow > Fix For: 3.2.0.ga > Attachments: HHH-1750.patch > > > When creating more as 300 Object in Oracle with insert="false" and generated="insert" by property - Tag in Mapping-File > causes an ORA-01000 "too many open cursors"... > It is executed using the following Java code: > SessionFactory sessionFactory; > > try { > // Create the SessionFactory from hibernate.cfg.xml > sessionFactory = new Configuration(). > configure(). > buildSessionFactory(); > } catch (Throwable ex) { > // Make sure you log the exception, as it might be swallowed > System.err.println("Initial SessionFactory creation failed." + ex); > throw new ExceptionInInitializerError(ex); > } > > try{ > > for (int i = 0; i <= 301; i++) { > > Session session = sessionFactory.getCurrentSession(); > Transaction tx = session.beginTransaction(); > > Test test = new Test(); > session.save(test); > > tx.commit(); > > } > > } catch (Exception e) { > System.out.println(e.getMessage()+e.getClass().toString()); > } > > And Mapping - File: > <?xml version="1.0"?> > <!DOCTYPE hibernate-mapping PUBLIC > "-//Hibernate/Hibernate Mapping DTD//EN" > "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > > <hibernate-mapping> > <class > name="src.persistence.Test" > table="TEST" > > > > <id name="id" type="java.lang.Long" column="ID" > > > <generator class="sequence"> > <param name="sequence">TEST_SEQ</param> > </generator> > </id> > <property > name="created" > column="CREATED" > type="java.util.Date" > not-null="true" > insert="false" > update="false" > generated="insert" > > > </property> > </class> > </hibernate-mapping> -- 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 |