1 Reply Latest reply on Jun 29, 2007 10:58 AM by Toni Beckman

    Persting an Array of Strings

    Toni Beckman Novice

      Hi,

      I'm using Entity beans with seam in my webapplication. I would like to persist an Array of Strings as follows:

      @OneToMany(cascade = {CascadeType.ALL})
      Collection descriptions = new ArrayList();

      This is not working so. I get an error message. Of course I could introduce another Entity bean, which only contains a String.

      However, I was wondering whether or not it is possible to directly save the strings?