|
From: <leg...@at...> - 2003-12-02 04:14:02
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-512 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-512 Summary: 2.1 RC1 not behaving with some Middlegen generated xml files Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: toolset Versions: 2.1 rc1 Assignee: Reporter: Daniel Rosenbaum Created: Mon, 1 Dec 2003 4:05 PM Updated: Mon, 1 Dec 2003 4:05 PM Description: When having a table with more than one PK, middlegen generates an xml file with elements similar to this (as well as generating a QwDataGrpVwPK class): <composite-id name="comp_id" class="testQwb.hibernate.persistent.QwDataGrpVwPK"> <meta attribute="field-description"> @hibernate.id generator-class="assigned" </meta> <!-- bi-directional many-to-one association to QwDataGrp --> <key-many-to-one name="qwDataGrp" class="testQwb.hibernate.persistent.QwDataGrp" > <column name="DATA_GRP_NUM" /> </key-many-to-one> <!-- uni-directional many-to-one association to QwVw --> <key-many-to-one name="qwVw" class="testQwb.hibernate.persistent.QwVw" > <column name="VW_NUM" /> </key-many-to-one> </composite-id> The problem is that Hibernate is choking when it sees the <meta> attribute here. If I comment out the <meta> portion then it works ok. In previous versions this also worked fine. Something about the presence of the meta tag over here messes up the parsing. The exception I get is: 16:58:13,505 ERROR Configuration:276 - Could not configure datastore from input stream java.lang.NullPointerException at net.sf.hibernate.util.StringHelper.qualify(StringHelper.java:239) at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:734) at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:263) at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1173) at net.sf.hibernate.cfg.Configuration.add(Configuration.java:245) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:268) at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:291) at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:935) at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:890) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:826) at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:812) at org.ifmc.qw.hibernate.HibernateSession.init(HibernateSession.java:44) Best Regards, Daniel Rosenbaum --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |