Change Notes item #782978, was opened at 2003-08-04 21:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=381174&aid=782978&group_id=22866
Category: JBossCMP
Group: v3.2
Status: Open
Priority: 5
Submitted By: Alexey Loubyansky (loubyansky)
Assigned to: Nobody/Anonymous (nobody)
Summary: <user-type-mappings>
Initial Comment:
With user-type-mapping elements in jbosscmp-jdbc.xml
it is possible to map any class to one column in a
database table. An example:
<user-type-mappings>
<user-type-mapping>
<java-
type>org.jboss.test.cmp2.enum.ejb.ColorEnum</java-
type>
<mapped-type>java.lang.Integer</mapped-type>
<mapper>org.jboss.test.cmp2.enum.ejb.ColorMapper</ma
pper>
</user-type-mapping>
</user-type-mappings>
ColorMapper serves as a mediator when data is stored
and loaded.
When data is stored, ColorMapper translates CMP field
value of type ColorEnum to an Integer instance which is
stored in the column of the table.
When data is loaded, ColorMapper translates loaded
Integer value into ColorEnum which is used then as a
CMP field value.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=381174&aid=782978&group_id=22866
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development