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.  [ 2 posts ] 
Author Message
 Post subject: @SecondaryTable questions
PostPosted: Thu Oct 23, 2008 3:28 pm 
Beginner
Beginner

Joined: Fri Sep 12, 2008 10:55 am
Posts: 33
I have a couple of questions regarding how to deal with @SecondayTable:

1) Is there a way that I'm not seeing, to add two @org.hibernate.annotations.Table(appliesTo = ... ) against multiple secondary tables?

Code:
//-- Cannot do, but just for visual
@org.hibernate.annotations.Table(appliesTo = "TABLE_1", ...)
@org.hibernate.annotations.Table(appliesTo = "TABLE_2", ...)
@SecondaryTables({
        @SecondaryTable(name="TABLE_1",...),
        @SecondaryTable(name="TABLE_2",...)})
public class MyTable ...



2) Adding an @Where for MyTable - is there any way to use the @Where on the SecondaryTable(s) also?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2008 5:39 pm 
Beginner
Beginner

Joined: Fri Sep 12, 2008 10:55 am
Posts: 33
Well - now that I've been healed from the stupidity bug, I thought I had tried org.hibernate.annotations.Tables before, but must have fat fingered it and that's why I couldn't find it. Thank you all for not pointing out my stupid fever!

Still stuck on the 2nd question however


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

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.