whether your Entity Bean has to be the exact replica of your database

Hi i am using EJB2.1

My question is whether your Entity Bean has to be the exact replica of your database?

eg:

If i have a table say x and it has 4 fields in it....

so now my entity has 4 getter and setter

If i modify my db's X table by adding one more field

do i need to add the getter setter for the new field....

and can u tell me the exact diff in this senario for CMP and BMP

Thank you

Geetanjalee

[465 byte] By [Geetanjaleea] at [2007-10-3 3:56:05]
# 1
Yes,you must map the new field to ejb when add new field to db.
chip0013a at 2007-7-14 21:54:15 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...