-->
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: ViewObjekte (read only) basierend auf query erstellen
PostPosted: Mon Feb 22, 2010 12:47 pm 
Newbie

Joined: Mon Feb 15, 2010 4:13 am
Posts: 8
Hallo,
ich habe bisher mit Oracle Business Components for Java gearbeitet.
Da gibt es die Möglichkeit basierend auf beliebigen SQL-Queries ViewObjekte zu erzeugen.
---
ViewObject createViewObjectFromQueryStmt(java.lang.String vuName, java.lang.String sqlStatement)
Creates a view object in this application module based on a SQL statement.
---
Diese ViewObjekte sind read-only da sie keine Entities als Basis haben.
Ich kann komplexe Joins über viele Tabellen machen und dann auf
alle properties wie bei einer List<EntityType> mit gettern zugreifen.

Kann man sowas auch in Hibernate / JPA machen?


Top
 Profile  
 
 Post subject: Re: ViewObjekte (read only) basierend auf query erstellen
PostPosted: Wed Feb 24, 2010 9:06 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Ja, mit Projections.
Siehe 'Java Persistence mit Hibernate' Kapitel 15.1.3 Projection and report queries


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.