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&#39;m pretty new in XDoclet, and it&#39;s really hard to fine some good documentation about it.<br>So, as I&#39;m working on a project created by others than me, I don&#39;t really understand the XDoclet part in EJB<br>
<br>I&#39;ve something like that in the XDoclet definition :<br><br><br><br>&nbsp;&lt;!-- begin-xdoclet-definition --&gt;<br>&nbsp;* @ejb.bean name=&quot;Agency&quot; <br>&nbsp;*&nbsp;&nbsp;&nbsp; jndi-name=&quot;Agency&quot;<br>&nbsp;*&nbsp;&nbsp;&nbsp; type=&quot;CMP&quot; <br>
&nbsp;*&nbsp; primkey-field=&quot;agy_id&quot; <br>&nbsp;*&nbsp; schema=&quot;AgencySCHEMA&quot; <br>&nbsp;*&nbsp; cmp-version=&quot;2.x&quot;<br>&nbsp;*<br>&nbsp;*&nbsp; @ejb.persistence <br>&nbsp;*&nbsp;&nbsp; table-name=&quot;AGY_Agency&quot; <br>&nbsp;*&nbsp;&nbsp; read-only=&quot;false&quot;<br>
&nbsp;* <br>&nbsp;* <br>&nbsp;* @jboss.method-attributes<br>&nbsp;* pattern=&quot;get*&quot;<br>&nbsp;* read-only=&quot;true&quot;<br>&nbsp;*<br>&nbsp;* @jboss.method-attributes<br>
&nbsp;* pattern=&quot;set*&quot;<br>
&nbsp;* read-only=&quot;false&quot;<br>&nbsp;*<br><br>The part that does matter for me is the &quot;read-only&quot; part.<br>It semmes that does not work because, here is the jbosscmp-jdbc.xml<br><br>&nbsp; &lt;entity&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ejb-name&gt;Agency&lt;/ejb-name&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;datasource&gt;java:/extranet2.argos_user&lt;/datasource&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;datasource-mapping&gt;Hypersonic SQL&lt;/datasource-mapping&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;create-table&gt;false&lt;/create-table&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;remove-table&gt;false&lt;/remove-table&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table-name&gt;AGY_Agency&lt;/table-name&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;cmp-field&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field-name&gt;agy_id&lt;/field-name&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;read-only&gt;true&lt;/read-only&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;column-name&gt;agy_id&lt;/column-name&gt;<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jdbc-type&gt;VARCHAR&lt;/jdbc-type&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;sql-type&gt;VARCHAR&lt;/sql-type&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/cmp-field&gt;<br>...<br><br>As you can see, the cmp-field is marked as read-only = true... <br>
<br>How can I put it in &quot;false&quot; ??<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&#39;s not possible, I would like to have everything as read-only=false, but whatever I write, It generate everytime the  &lt;read-only&gt;true&lt;/read-only&gt; 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==--