- This topic has 4 replies, 2 voices, and was last updated 21 years, 6 months ago by
Scott Anderson.
-
AuthorPosts
-
Paolo ReitelliMemberHi,
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.1Thanks all.[/quote]
Scott AndersonParticipantHave 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
Paolo ReitelliMember@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 SupportHi, 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.
Paolo ReitelliMemberHere’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.
Scott AndersonParticipantThat 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 -
AuthorPosts