-->
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: Join native SQL as property in dynamic class
PostPosted: Fri Sep 10, 2010 9:43 am 
Newbie

Joined: Fri Sep 10, 2010 9:11 am
Posts: 4
Hello Community,

I'm currently planning the migration process of my company from C and native SQL to Java and Hibernate.
Since most of our objects are not known at deployment-time (our table-definitions are mostly stored in the database) we're going to work with <dynamic-component>s and a single POJO. Our table-definitions also includes sql-columns that contain native SQL-code which is joined with a subselect by the current program. I've just had a look on <sql-query>/<return-scalar> nodes. Such queries can be used as custom loaders with the help of the <class>/<loader> node. Is it possible to _join_ the result of a custom loader (foreign table) with other properties of that class?

Best regards,
Markus Iser


Top
 Profile  
 
 Post subject: Re: Join native SQL as property in dynamic class
PostPosted: Sat Sep 11, 2010 7:09 am 
Newbie

Joined: Fri Sep 10, 2010 9:11 am
Posts: 4
Ok I can give the answer myself now. Normally one would use @Formula or <formula>-nodes to accomplish this.


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.