-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Attribute in XDoclet unterbinden
PostPosted: Tue Nov 28, 2006 12:56 pm 
Newbie

Joined: Tue Nov 28, 2006 12:46 pm
Posts: 6
Hi!

Ich generiere mittels XDoclet die benoetigten *.hbm.xml Dateien fuer alle persistenten Java Klassen.

Das brauche ich:

Code:
...
<bag name="projectList" table="user_project" lazy="false" cascade="save-update"
        >

            <key column="userID">
            </key>

            <many-to-many class="com.nl.esa.persistent.Project" column="projectID"
             />

      </bag>
...


Aber leider kommt das raus:
Code:
...
<bag name="projectList" table="user_project" lazy="false" cascade="save-update"
        >

            <key column="userID">
            </key>

            <many-to-many class="com.nl.esa.persistent.Project" column="projectID" outer-join="false"
             />

      </bag>
...


Und das ist mein Java-Code

Code:
/**
   * @hibernate.bag table="user_project" cascade="save-update"
   * @hibernate.collection-key column="userID"
   * @hibernate.collection-many-to-many class="com.nl.esa.persistent.Project" column="projectID" outer-join="false"
   */
   public List getProjectList()
   {
      return projectList;
   }
   
   /**
    * @param projectList the projectList to set
    */
   public void setProjectList( List projectList )
   {
      this.projectList = projectList;
   }


Es waere klasse, wenn man das Attribute outer-join unterbinden koennte, denn ohne das Attribute klappt es wunderbar, aber leider nicht mit... :(

Danke!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.