-->
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: Specifying a relationship on a constant value
PostPosted: Thu Aug 08, 2013 11:42 am 
Newbie

Joined: Thu Aug 08, 2013 11:35 am
Posts: 1
Hi There,

I'm wondering how to specify a one-to-many join annotation with a constant value. Here's an example of a query I'm trying to run that has this relationship:

SELECT * FROM CWO_TASK LEFT OUTER JOIN UOBJ_ALIAS ON UOBJ_ALIAS.PRIMARY_REF = 1 AND CWO_TASK.OBJ_ID = UOBJ_ALIAS.PARENT_OBJ_ID

I would want to put the relationship on the CWO_TASK entity.

Any ideas on this. I've seen this pagehttp://openjpa.apache.org/builds/2.2.2/apache-openjpa/docs/ref_guide_mapping_notes_nonstdjoins.html but when I deploy my JBoss server, I get an error.

Thanks,
N8


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.