Joined: Mon Nov 29, 2004 12:36 pm Posts: 2
|
I have a quick question!
Is it possible to do something like this in a Query (and how do I do it?):
"select new MyObject('randomString', table.col1) from my_table table" ?
My problem is that "MyObject" has a constructor that requires a string that is not available in "my_table" so I want to provide a default value through Hibernate.
Of course I can iterate the result of the Query and insert the default value manually but it would be nice to be able to do it in the Query.
I could not find any information about this in the documentation...
|
|