- This topic has 6 replies, 2 voices, and was last updated 19 years, 8 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
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.
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
Riyad KallaMemberAhh I see, I will report this issue, thank you.
Riyad KallaMemberTurns out this was already filed and should be addressed in our 4.0 release, hang tight.
powerware.nlMemberCan you give an estomate when version 4 is expected ?
Sergio
Riyad KallaMemberLate April.
-
AuthorPosts