-->
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: @JoinTable with multiple JoinColumns
PostPosted: Thu Oct 21, 2010 7:29 pm 
Newbie

Joined: Mon May 17, 2010 11:29 am
Posts: 12
I'm not able to get this to work and I'm hoping that someone can make my day and let me know that it is possible and perhaps share how to get it to work.

I would like to use a JoinTable with multiple JoinColumns. The JoinTable gives me an error when I have the multiple JoinColumn annotations in the JoinTable. I've also tried using a JoinColumns annotation to group the two together but without any luck. Is this feature just not possible? If I use only a single JoinColumn it maps together but this won't accurately populate the collection. Thanks for any help.

Quote:
unexpected token: @ @ line 130, column 2.
[groovyc] @OneToMany
[groovyc] ^

Code:
        @OneToMany   
   @JoinTable(
   name="Project_Properties_Inst_Value",
   joinColumns = {
      @JoinColumn(name="Attribute_Number"),
      @JoinColumn(name="Instance")
      },
   inverseJoinColumns = {
      @JoinColumn(name="Project_Number"),
      @JoinColumn(name="Latest_Project_Properties_Instance")
      }
   )


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.