Problem using the read-only parameter
"pierre betz" <[email protected]> Mon, 28 Jul 2008 15:54:57 +0700
| Newsgroups | gmane.comp.java.xdoclet.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1066284665==
Content-Type: multipart/alternative;
boundary="----=_Part_16334_15105431.1217235297773"
------=_Part_16334_15105431.1217235297773
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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="Agency"
* jndi-name="Agency"
* type="CMP"
* primkey-field="agy_id"
* schema="AgencySCHEMA"
* cmp-version="2.x"
*
* @ejb.persistence
* table-name="AGY_Agency"
* read-only="false"
*
*
* @jboss.method-attributes
* pattern="get*"
* read-only="true"
*
* @jboss.method-attributes
* pattern="set*"
* read-only="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 = true...
How can I put it in "false" ??
In fact I would like to have methods set* as read-only=true, and get* as
read-only=false.
If it's not possible, I would like to have everything as read-only=false,
but whatever I write, It generate everytime the <read-only>true</read-only>
parameter..
Does anyone have an idea to help me ?
Thanks a lot !
Pierre Betz
------=_Part_16334_15105431.1217235297773
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<div dir="ltr">Hi everybody,<br>I'm pretty new in XDoclet, and it's really hard to fine some good documentation about it.<br>So, as I'm working on a project created by others than me, I don't really understand the XDoclet part in EJB<br>
<br>I've something like that in the XDoclet definition :<br><br><br><br> <!-- begin-xdoclet-definition --><br> * @ejb.bean name="Agency" <br> * jndi-name="Agency"<br> * type="CMP" <br>
* primkey-field="agy_id" <br> * schema="AgencySCHEMA" <br> * cmp-version="2.x"<br> *<br> * @ejb.persistence <br> * table-name="AGY_Agency" <br> * read-only="false"<br>
* <br> * <br> * @jboss.method-attributes<br> * pattern="get*"<br> * read-only="true"<br> *<br> * @jboss.method-attributes<br>
* pattern="set*"<br>
* read-only="false"<br> *<br><br>The part that does matter for me is the "read-only" part.<br>It semmes that does not work because, here is the jbosscmp-jdbc.xml<br><br> <entity><br> <ejb-name>Agency</ejb-name><br>
<datasource>java:/extranet2.argos_user</datasource><br> <datasource-mapping>Hypersonic SQL</datasource-mapping><br> <create-table>false</create-table><br> <remove-table>false</remove-table><br>
<table-name>AGY_Agency</table-name><br><br> <cmp-field><br> <field-name>agy_id</field-name><br> <read-only>true</read-only><br> <column-name>agy_id</column-name><br>
<br> <jdbc-type>VARCHAR</jdbc-type><br> <sql-type>VARCHAR</sql-type><br><br> </cmp-field><br>...<br><br>As you can see, the cmp-field is marked as read-only = true... <br>
<br>How can I put it in "false" ??<br><br>In fact I would like to have methods set* as read-only=true, and get* as read-only=false.<br><br>If it's not possible, I would like to have everything as read-only=false, but whatever I write, It generate everytime the <read-only>true</read-only> parameter..<br>
<br><br>Does anyone have an idea to help me ?<br><br><br>Thanks a lot !<br><br><br>Pierre Betz<br></div>
------=_Part_16334_15105431.1217235297773--
--===============1066284665==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
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 prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
--===============1066284665==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
--===============1066284665==--