- This topic has 6 replies, 2 voices, and was last updated 20 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
powerware.nlMemberHi,
Made about 35 postgresql table to hinbernate classes.
I packeaged them in several packages.
But in the generated xml file’s all references are whithout package name.So i have the correct all file’s manualy is there another solution for this ?
Sergio
March 21, 2005 at 3:35 pm #226961
Riyad KallaMemberSergio,
When you generated the mapping classes, didn’t you specify a package for the generated files to go into? Or do you mean that the hbm.xml files did not use the FQN’s of the classes they were intended for? Please give example code snippets of what you are talking about.March 22, 2005 at 1:58 am #226973
powerware.nlMemberThis is the generated code
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" > <!-- DO NOT EDIT: This is a generated file that is synchronized --> <!-- by MyEclipse Hibernate tool integration. --> <!-- Created Wed Mar 16 15:39:39 CET 2005 --> <hibernate-mapping package="com.test.db.data.stamgegevens"> <class name="Soort" table="soort"> <id name="id" column="id" type="java.lang.String"> <generator class="uuid.hex"/> </id> <property name="zcode" column="zcode" type="java.lang.String" not-null="true" /> <property name="naam" column="naam" type="java.lang.String" not-null="true" /> <property name="aangemaakt" column="aangemaakt" type="java.util.Date" /> <property name="gewijzigd" column="gewijzigd" type="java.util.Date" /> <property name="structuur" column="structuur" type="java.util.Date" /> <many-to-one name="gebruiker" column="gebruikerid" [b]class="Gebruiker"[/b] not-null="true" /> </class> </hibernate-mapping>
the gebruiker class is placed in package com.test.db.data.gebruikers
if have to correect the may-to-one mapping so that i can work with the database
Sergio
March 22, 2005 at 8:14 am #226979
Riyad KallaMemberAhh I see, I will report this issue, thank you.
March 23, 2005 at 7:23 am #227030
Riyad KallaMemberTurns out this was already filed and should be addressed in our 4.0 release, hang tight.
March 23, 2005 at 9:24 am #227033
powerware.nlMemberCan you give an estomate when version 4 is expected ?
Sergio
March 23, 2005 at 10:37 am #227037
Riyad KallaMemberLate April.
-
AuthorPosts