-->
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: INNER JOIN with a View using Criteria
PostPosted: Fri Mar 13, 2009 3:14 pm 
Newbie

Joined: Mon Feb 09, 2009 7:02 pm
Posts: 2
Hibernate version: 2.0

Name and version of the database you are using: SQL 2005

Hi guys. Once again sorry 4 my bad english.

I dont know if its possible, but I have to perform a INNER JOIN operation between two entities.
table and view.
I already mapped both sucefully and now im trying to create a ICriteria to perform this join operation.

One of the issues i have is that the view is mapped using a composite-id.

Basically, the entities have the following fields:

Table

FileId (Key)
FileName
Properties

View

EntityFatherId (Key)
EntityChildId (Key)

In my criteria i need to set the condition where EntityFatherId field is equal to a parameter that i receive, and the join with Table is performed using the EntityChildId = FileId.

So i need some help to build the instructions to do that with ICriteria.

Any ideas?


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.