facebook

genrate different packages for hibernate classes problem !

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #226956 Reply

    powerware.nl
    Member

    Hi,

    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

    #226961 Reply

    Riyad Kalla
    Member

    Sergio,
    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.

    #226973 Reply

    powerware.nl
    Member

    This 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

    #226979 Reply

    Riyad Kalla
    Member

    Ahh I see, I will report this issue, thank you.

    #227030 Reply

    Riyad Kalla
    Member

    Turns out this was already filed and should be addressed in our 4.0 release, hang tight.

    #227033 Reply

    powerware.nl
    Member

    Can you give an estomate when version 4 is expected ?

    Sergio

    #227037 Reply

    Riyad Kalla
    Member

    Late April.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: genrate different packages for hibernate classes problem !

You must be logged in to post in the forum log in