-->
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: SQL Query generated by HQL doesnt include the newly added db
PostPosted: Tue Dec 23, 2008 3:45 pm 
Newbie

Joined: Tue Dec 23, 2008 3:44 pm
Posts: 1
I have a working HQL as mentioned below

String queryStr = "from X x left join fetch x.y y" +
" left join fetch x.z z" +
" left join fetch x.a a" +
" where x.y.id = ?";

I added a new column called threshold to the table X_TABLE (which is mapped to POJO X)

The sql generated from the above query doesnt add the new column in the select clause for some reason..


the mapping file entry for the new column:

<property name="threshold" type="string">
<column name="THRESHOLD" length="20" />
</property>

Pojo:
private String threshold;

public String getThreshold() {
return this.threshold;
}

public void setThreshold(String threshold) {
this.threshold = threshold;
}

can you help?


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.