Re: Problem using the read-only parameter
Chema <[email protected]> Mon, 4 Aug 2008 12:55:45 +0200
| Newsgroups | gmane.comp.java.xdoclet.user |
|---|---|
| Message-ID | <[email protected]> |
Well, I don=B4t know so much about XDoclet , but online documentation says: @ejb.persistence , method tag with property read-only (boolean). I'll try to run it , and I got <field-name>field1</field-name> <read-only>false</read-only> <column-name>FIELD1</column-name> I guess it's not possible to set up different properties to set/get methods, but I'm not sure 2008/7/28 pierre betz <[email protected]>: > Hi everybody, > I'm pretty new in XDoclet, and it's really hard to fine some good > documentation about it. > So, as I'm working on a project created by others than me, I don't really > understand the XDoclet part in EJB > > I've something like that in the XDoclet definition : > > > > <!-- begin-xdoclet-definition --> > * @ejb.bean name=3D"Agency" > * jndi-name=3D"Agency" > * type=3D"CMP" > * primkey-field=3D"agy_id" > * schema=3D"AgencySCHEMA" > * cmp-version=3D"2.x" > * > * @ejb.persistence > * table-name=3D"AGY_Agency" > * read-only=3D"false" > * > * > * @jboss.method-attributes > * pattern=3D"get*" > * read-only=3D"true" > * > * @jboss.method-attributes > * pattern=3D"set*" > * read-only=3D"false" > * > > The part that does matter for me is the "read-only" part. > It semmes that does not work because, here is the jbosscmp-jdbc.xml > > <entity> > <ejb-name>Agency</ejb-name> > <datasource>java:/extranet2.argos_user</datasource> > <datasource-mapping>Hypersonic SQL</datasource-mapping> > <create-table>false</create-table> > <remove-table>false</remove-table> > <table-name>AGY_Agency</table-name> > > <cmp-field> > <field-name>agy_id</field-name> > <read-only>true</read-only> > <column-name>agy_id</column-name> > > <jdbc-type>VARCHAR</jdbc-type> > <sql-type>VARCHAR</sql-type> > > </cmp-field> > ... > > As you can see, the cmp-field is marked as read-only =3D true... > > How can I put it in "false" ?? > > In fact I would like to have methods set* as read-only=3Dtrue, and get* as > read-only=3Dfalse. > > If it's not possible, I would like to have everything as read-only=3Dfals= e, > but whatever I write, It generate everytime the <read-only>true</read-onl= y> > parameter.. > > > Does anyone have an idea to help me ? > > > Thanks a lot ! > > > Pierre Betz > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challe= nge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the wor= ld > http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/ > _______________________________________________ > xdoclet-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great priz= es Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=3D100&url=3D/