CPT codes :) (I used to work for McKesson HBOC) Anyway, you should get a copy of my documentation. What you want to do is define a dependent value class for the CPT4Code not a type mapping (type mappings are for basic types). The problem with the current implementation of DVCs is it needs both a getter and setter method, so it may not work for you.
If current version of DVC mapping doesn't work for you, I suggest you write a wrapper getter and setter method, which calls toString and sets the real field. -dain Greg Greaves wrote: > Hi, > > I apologize if this got posted twice but I'm not sure I was properly > configured the > first time. > > We are using JBoss 3.0 and are having a problem with type mapping. We > have added the following block to our standardjbosscmp-jdbc.xml file: > > <mapping> > <java-type>CPT4Code</java-type> > <jdbc-type>VARCHAR</jdbc-type> > <sql-type>TEXT</sql-type> > </mapping> > > When we look at what gets put in the database for CPT4Code, it's just > the serialized version of the object. We were expecting that it would > call toString() to properly map the type. Are we missing something? > > Thanks, > -Greg -- xxxxxxxxxxxxxxxxxxxxxxxx Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ---------------------------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<< _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user