Ops, something wrong, the correct would be:

<entity> 
<description>@Data-source jdbc/MySQL 
@Table-name myOwnTable</description> 
<cmp-field> 
<description>@Persistence-type varchar(30)</description> 
<field-name>userId</field-name> 
</cmp-field> 
</entity> 

----------------------------------------------


De: [EMAIL PROTECTED]
Para: Orion-Interest <[EMAIL PROTECTED]>
Assunto: Suggestion
Data: 06/2/2001 09:11:09

Since EJB 20 Spec does not support SQL ANSI datatypes inside ejb-jar.xml, I suggest 
that Orion accept folowing: accept JavaDoc like tags.

So, we can have following:

<entity>
  <description>@Data-source jdbc/MySQL
               @Table-name myOwnTable</description>
  <cmp-field persistence-type="varchar(30)">
    <description>@Persistence-type varchar(30)</description>
    <field-name>userId</field-name>
  </cmp-field>
</entity>

As this sample, Orion should map this entity bean to Datasource and table specified, 
and the datatype of the fields...

Of course, user have choice to write anything inside <description></...> tags, to 
maintain compatibility with spec...

What you do think about this?

My2c

Edson Richter





Reply via email to