[jboss-user] [JBoss Seam] - Re: how to make a ejbql query from an entity bean ?

2007-12-03 Thread [EMAIL PROTECTED]
Its not good practice to do this (I'm sure Gavin has some blogs on this, so go look on http://in.relation.to) but if you have to you would have to look up the EM programatically. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4109778#4109778 Reply to the post

[jboss-user] [JBoss Seam] - Re: how to make a ejbql query from an entity bean ?

2007-12-03 Thread supernovasoftware.com
I use @Formula. It requires compile time instrumentation for lazy loading and will not load collections unless you use hibernate mapping files. It works fine with calculated properties and annotations as shown below. See: http://opensource.atlassian.com/projects/hibernate/browse/ANN-210 It