CMP bean - Table created has the name of the bean

Hi,

When I deploy the CMP bean, the table created takes the name of the bean and not the name I give in the <table-name> tag of sun-cmp-mappings.xml.

Hence I am unable to connect to an existing table.

For Example, if my bean-name is StudentBean, the table created is STUDENTBEAN. However <table-name> tag has value Student.

Can any one help?

[387 byte] By [Saniya] at [2007-11-26 7:43:41]
# 1
The fastest way to avoid this is to create entity beans based on existent tables.To do it create database connection (Runtime-> Databases-> Drivers-> your DB-> connect using...) and use this connection in New CMP Entity Beans from Database wizard.
Jin_B at 2007-7-6 19:53:27 > top of Java-index,Development Tools,Java Tools...