| How to create View of Objects with EJB QL ? |
| Written by F.Marchioni | |||||
|
One nice feature of EJB QL is the ability to create new Type safe instances of an Object simply using the new construct. Here is an example: select new Family(mother, mate, offspr) Here we are returning an Object type of Family provided that we have a Constructor Family(mother, mate, offspr) in the class.
JBoss.org Search
Custom Search
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |


