1 Reply Latest reply on Nov 24, 2003 9:39 AM by Randahl Fink Isaksen

    Custom type mapping

    Randahl Fink Isaksen Novice

      Just like JBoss maps instances of String and Boolean to database types in a proper way, I would like JBoss to map my own Xyz type to, say, a database String.

      String and Boolean are immutable classes and so is my Xyz class, so what I do not know is how to make JBoss capable of mapping back and forth between the database String and an instance of class Xyz. How can I do that?

      Any help would be highly appreciated.


        • 1. Re: Custom type mapping
          Randahl Fink Isaksen Novice

          I was thinking about adding a type mapping in the following way



          But I can't find anything in neither JBossCMP or or the JBossBook which states this is the way to go about it. Does anyone know if this works? Is there a better way?