facebook

item in jbosscmp-jdbc.xml

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #197984 Reply

    Hi,
    I’m developing a CMP bean on jboss 3.0.7. My bean start like this:


    /**
    *
    * @ejb.bean name = “SocietaBean”
    * type = “CMP”
    * cmp-version = “2.x”
    * display-name = “SocietaBean”
    * description = “Description”
    * view-type = “both”
    * jndi-name = “ejb/im6/applicativo/SocietaBean”
    * local-jndi-name = “ejb/im6/applicativo/SocietaLocalBean”
    * primkey-field = “codice”
    *
    *
    * @jboss.persistence table-name = “TSOCIETA”
    *
    * @ejb.pk class=”java.lang.String”
    *
    * @ejb:util generate=”physical”
    *
    *
    * @ejb.finder signature=”Collection findAll()”
    * unchecked=”true”
    * query=”select OBJECT(o) from SocietaBean o”
    */
    public abstract class SocietaBean implements EntityBean {

    …other stuff…
    }

    The jbosscmp-jdbc.xml file generated by xdoclet doesn’t contain the item <table-name>TSOCIETA</table-name>.

    How can I get the item generated?

    I use:
    MyEclipse Enterprise Workbench 2.5.1
    Eclipse 2.1.1 Build 200306271545
    Java SDK 1.4.1

    Thanks all.[/quote]

    #197992 Reply

    Scott Anderson
    Participant

    Have you set the datasource and mapping attributes in the JBoss task of the doclet.

    In all honesty, I don’t have any experience generating CMP’s with XDoclet so I’ll probably have to throw this one out to the community at large and hope someone there can help.

    –Scott
    MyEclipse Support

    #198000 Reply

    @scott wrote:

    Have you set the datasource and mapping attributes in the JBoss task of the doclet.

    In all honesty, I don’t have any experience generating CMP’s with XDoclet so I’ll probably have to throw this one out to the community at large and hope someone there can help.

    –Scott
    MyEclipse Support

    Hi, Scott.

    Have you set the datasource and mapping attributes in the JBoss task of the doclet.

    Yes, I setted this properties.

    Don’t worry, I’m triyng to get information from the community too.
    If I’ll get news, I will inform you. [<- I hope this is good English 🙂 ]

    Thank you.

    #198001 Reply

    Here’s the new:

    From the xdoclet mailing list


    >On Thu, 2003-07-31 at 17:36, Bryce Fischer wrote:
    > Got the following code in my class header:
    >
    >
    >
    > * @jboss.persistence table-name = “SYSTEM_FORM”
    >
    > * create-table = “true”
    >
    > * remove-table = “false”
    >
    >
    >
    > Now, if I understand it correctly, shouldn¢t it create the
    >
    > <table-name> tag in jbosscmp-jdbc.xml?

    Think there’s a bug in the JBoss table-name tag … use the
    @ejb.persistence version. I reported it as a bug a while back.


    Andy

    I tried and things go all right.

    Thank you.

    #198003 Reply

    Scott Anderson
    Participant

    That was some detailed and excellent followup work and we appreciate you posting the result back to the forum so we have a record of the solution in our “collective memory”.

    –Scott
    MyEclipse Support

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: item in jbosscmp-jdbc.xml

You must be logged in to post in the forum log in