Regular |
|
Joined: Thu Dec 11, 2003 4:14 pm Posts: 86 Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
|
I would like to know if someone managed to add a user defined column in query output with the criteria-api.
I do have a table and would like to call a database function which do some calculation - some sort of:
select item.*, calculate_price(item.itemId) as price from items
For the "item" exists a pojo, but the price is a dynamic column and the function might change depending on the current use.
Thanks!
Hibernate version:
hibernate 3 cvs 2005-03-18
annotations cvs 2005-03-18
|
|