0 Replies Latest reply on Sep 27, 2004 8:25 PM by mhixson

    specify Postgres sequence name using XDoclet?

    mhixson Newbie

      I currently have an entity bean with these xdoclet tags.

      * @ejb.bean
      * view-type="local"
      * name="Content"
      * type="CMP"
      * cmp-version="2.x"
      * schema="content"
      * primkey-field="contentId"
      * local-jndi-name="Content"
      * @ejb.interface
      * generate="local"
      * local-extends="javax.ejb.EJBLocalObject"
      * @ejb.home
      * local-extends="javax.ejb.EJBLocalHome"
      * @ejb.persistence
      * table-name="content"
      * @jboss.entity-command
      * name="postgresql-fetch-seq"
      * @jboss.method-attributes
      * pattern="get*"
      * read-only="true"

      What I'd like to do is specify the sequence name. Apparently JBoss is assuming that the sequence name is content_content_id_seq when it actually is named v_content_content_id_seq because of a wacky table naming convention (the table used to be named v_content).
      I think I need to use @jboss.entity-command-attribute, but I don't know what the name of the attribute should be.