Hi,

is it possible to access a field of an EntityBean that is mapped to an user 
defined type (according to the instructions in the Wiki 
http://wiki.jboss.org/wiki/Wiki.jsp?page=UserTypeMapping) in finder methods?

For example:


  | @ejb.finder
  |   signature="java.util.Collection findByColor(ColorEnum color)"
  |   query="SELECT OBJECT(c) FROM Car AS c WHERE c.color = ?1"
  | 

Searching the forum for this problem I found two issues addressing the problem,
1. http://jira.jboss.com/jira/browseJBAS-2507 - support for <, <=, > and >= 
comparisons for types mapped with user-type-mapping

and

2. http://jira.jboss.com/jira/browseJBAS-1893 - Finders that use 
user-type-mappings are broken.

The description of the first issue says: anonymous wrote : Types mapped with 
user-type-mapping are mapped to a single column, so, it makes sense to also 
support comparisons other than = and <>.
Because of the bold text I assume that the current JBoss releases support "=" 
and "<>" comparisons in finder methods.

Unfortunately I was not able to figure out how it can be achieved.

Can anybody point me to the right direction?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928717#3928717

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928717


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to