-->
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.  [ 3 posts ] 
Author Message
 Post subject: columns in HQL queries that are not mapped to POJO
PostPosted: Fri Jan 27, 2006 5:26 am 
Newbie

Joined: Fri Jan 27, 2006 5:20 am
Posts: 3
Hibernate version: 3

Hi,

Can I refer to columns that are not mapped to java class using HQL? In example (CAT_LENGTH is not mapped to Cat) :

Code:
<query> from Cat where CAT_LENGTH = 5 </query>


Best regards!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 27, 2006 1:13 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
I think you can test this easily and I suppose that it will not work.

Regards Sebastian

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 3:44 am 
Newbie

Joined: Fri Jan 27, 2006 5:20 am
Posts: 3
LaLiLuna wrote:
I think you can test this easily and I suppose that it will not work.


I tested it and it did not work :) But maybe anyone knows how to make it work? ;)


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