-->
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.  [ 4 posts ] 
Author Message
 Post subject: properties order in HBM vs. columns order in SQL
PostPosted: Wed May 23, 2007 4:47 am 
Newbie

Joined: Wed May 23, 2007 4:43 am
Posts: 2
Hello,

there are two properties calculated with a formula in my mapping (.hbm) file.
All of the other properties in this file map directly to table columns.

The problem is that in the SQL queries generated by Hibernate the formula
calculated properties are placed at the end of the list of columns (despite
the fact that in the .hbm file they are in the middle of the property
list).

Is it possible to force Hibernate to put the properties in the generated
SQL query in exactly the same order as they apear in the .hbm file?

Thanks in advance for any help.

Greetings,
Tomek.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 5:14 am 
Newbie

Joined: Thu Dec 15, 2005 3:03 pm
Posts: 5
Greetings.

Can you describe situtation where you need in this feature?

Regards, Dmitry.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 5:20 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

What do you exactly want?


Amila


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 5:24 am 
Newbie

Joined: Wed May 23, 2007 4:43 am
Posts: 2
[quote="dmitry"]

Can you describe situtation where you need in this feature?

[/quote]

One of the properties in my .hbm file maps to Oracle's LONG RAW column.
The only way to avoid the "Stream has already been closed" error when reading the LONG RAW
column is to put it as the last one in the list of columns in the SQL query.

Greetings,
Tomek.


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