|[Teneo] Enhancement using ENum literals in HQL queries... [message #606827]
||Wed, 30 May 2007 15:06
| Michael Kanaley
Registered: July 2009
Say you have an MLBTeam Enum with literals:|
If Teneo's Enum UserType for Hibernate implemented
Then you could specify a query like:
"FROM Players WHERE player.team = MLBTeam.YANKEES_LITERAL"
Right now you have to use parameter substitution or construct the query
String above on the fly.
Perhaps there is some way to do this already that I don't know about.
Also, is there a way to using an integer column instead of a String column
when storing enumeration values in a DB column?
Powered by FUDForum
. Page generated in 0.02225 seconds