-->
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.  [ 4 posts ] 
Author Message
 Post subject: generate domain from quey
PostPosted: Thu Nov 20, 2008 6:30 am 
Newbie

Joined: Thu Sep 11, 2008 8:35 am
Posts: 4
Hi,
is there any way to generate the domain objects from a sql-statement?
I'm porting a legacy stored-procedure based app to java.
most of the main cursor queries are from multiple tables.
i would like to generate the domain object for these result-sets.

thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2008 10:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no, we dont support reverse engineering of stored procedures.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2008 10:27 am 
Newbie

Joined: Thu Sep 11, 2008 8:35 am
Posts: 4
the stored procedures are not the issue,
but each works on a main cursor which is a select from multiple tables.
i would like to generate a domain object for these queries.
the question is -
is it possible to generate sources out of a sql statement and not from a table?
if not i might just use views for the generation phase..


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 23, 2008 1:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
You can always just put the structure of your queries into reveng.xml as fake table/column definitions.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.