Title: RE: [JBoss-user] Jaws Mapping

Marcel,

The ejb-jar.xml contains the generic configuration for beans, the mapping between the fields  and the columns in the database needs to be done in the container specific deploment description. For jboss this is the jaws.xml file, the jboss documentation has a good example of what you are trying to do at http://www.jboss.org/documentation/HTML/ch05s04.html.

Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marcel
Schepers
Sent: 18 June 2001 12:37
To: jboss-user
Subject: [JBoss-user] Jaws Mapping


Hello,

When I define my Jaws mapping in ejb-jar.xml and I use the MySQL
client (mysql) tool to view the table layout created I see some
differences. For example, my ejb-jar.xml contains among other things:

<cmp-field>
  <field-name>nickName</field-name>
  <jdbc-type>VARCHAR</jdbc-type>
  <sql-type>VARCHAR(20)</sql-type>
</cmp-field>

When I view the table layout I see the following:

mysql> describe User;
+---------------------+---------------+------+-----+---------+-------+
| Field               | Type          | Null | Key | Default | Extra |
+---------------------+---------------+------+-----+---------+-------+
 .
 .
 .
| nickName            | text          | YES  |     | NULL    |       |
 .
 .
 . etc etc
+---------------------+---------------+------+-----+---------+-------+
15 rows in set (0.01 sec)

This is not correct, is it?

Thanks,
Marcel







_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to