[jboss-user] [EJB 3.0] - Ordering on Transient Field
FabBoco
do-not-reply at jboss.com
Wed Sep 19 05:32:10 EDT 2007
Hi,
I have the following Entity Bean
| public class E1 implements Serializable
| {
| private String p1;
|
| .........
|
| @Transient
| public Double getP2()
| {
| .....
| }
| }
|
If I executes the following query:
| select o from E1 as o order by o.p2
|
I obviously get the following error:
| org.hibernate.QueryException: could not resolve property: p2
|
Question is if I can use transient fields in EJBQL queries and how.
Thank you
Fab.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085936#4085936
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085936
More information about the jboss-user
mailing list