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