-->
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: Hibernate reporting queries vs views
PostPosted: Tue Jan 02, 2007 7:10 am 
Beginner
Beginner

Joined: Fri May 12, 2006 9:58 am
Posts: 32
Hello

I need to do some reporting on a rather complex domain model, and right now I've created some SQL views which collect the data. Then with a SQL query of the form:
Code:
SQLQuery query = session.createSQLQuery("SELECT foo, bar FROM example_view");
I collect that data and display.

The disadvantage is that I've now pushed some logic in the database (to construct the view). If the domain model changes, I'll have to update the view as well, etc.

Any thoughts about that? Should I try to do it with hibernate? The view is pretty complex right now, and if I did that with hibernate I would need many more queries.

thanks


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.