|
This should be fixed in CVS. From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wouter Zoons Seems I cannot declare composite associations with only one
end being navigable ArticleGroup | (non-navigable) --------------- (navigable
& composite) | Color [java] INFO: Mapping collection:
be.sylis.vw.akvdt.person.PersonImpl.articles -> ARTICLE [java] Dec 10, 2004 2:46:06 PM
net.sf.hibernate.cfg.Configuration secondPassCompile [java] INFO: processing one-to-one
association property references [java] Dec 10, 2004 2:46:06 PM
net.sf.hibernate.tool.hbm2ddl.SchemaExport main [java] SEVERE: Error creating schema [java] net.sf.hibernate.MappingException:
property-ref not found: articleGroup in class:
be.sylis.vw.akvdt.color.ColorImpl [java] at
net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:653) [java] at
net.sf.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:459) [java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:58) [java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:48) [java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:303) [java] net.sf.hibernate.MappingException:
property-ref not found: articleGroup in class:
be.sylis.vw.akvdt.color.ColorImpl [java] at
net.sf.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:653) [java] at
net.sf.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:459) [java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:58) [java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:48) [java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:303) <?xml version="1.0"?> <!-- Attention: Generated code! Do not
modify by hand! Generated by: hibernate.hbm.xml.vsl
in andromda-spring-cartridge. --> <!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> <hibernate-mapping default-cascade="none">
<class name="be.sylis.vw.akvdt.article.ArticleGroupImpl"
table="ARTICLE_GROUP">
<id name="id" type="java.lang.Long"
column="ID" unsaved-value="null">
<generator class="increment">
</generator>
</id>
<property name="code" type="java.lang.String">
<column name="CODE" not-null="true"
unique="true" sql-type="VARCHAR(256)"/>
</property>
<property name="description" type="java.lang.String">
<column name="DESCRIPTION"
not-null="true" unique="false" sql-type="VARCHAR(256)"/>
</property>
<property name="name" type="java.lang.String">
<column name="NAME" not-null="true"
unique="false" sql-type="VARCHAR(256)"/>
</property> <one-to-one
name="color" class="be.sylis.vw.akvdt.color.ColorImpl"
property-ref="articleGroup"/>
</class> </hibernate-mapping> |
