0 Replies Latest reply on Aug 7, 2006 12:31 PM by nbarker

    Entity Bean custom functions - asText(), createfromwkt()

    nbarker

      Hi,

      I have written entity beans that map on to the columns of a spatial database (postgis) so I have a property

      @Column(name="extents")
      public String getExtents()
      {
      return extents;
      }

      where extents is actually of type Geometry but I want JBoss to call the database astext() function wrapper when retrieving this column, and when it updates the entity to call the database createfromwkt() function.

      Is this possible with EJB3? Ideally I would also likes these functions to be available when using EJB-QL?

      Many thanks,

      Norman