The names used in EJB QL are the ones that you define as getter an setter for the specified column. The mapping between the getter/setter and the column name is done in the ejb-DD ejb-jar.xml.
Using XDoclet it might be: anonymous wrote : /** | * @ejb:persistence column-name = "USER_ID" | * @ejb:interface-method view-type="local" | */ | public abstract Long getUserId(); | /** | * @ejb:interface-method view-type="local" | */ | public abstract void setUserId(Long userId); | Then the EJB QL looks like: anonymous wrote : SELECT object(a) FROM user a where a.userId = ... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847655#3847655 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847655 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
