Bryan Field-Elliot wrote:

> The jBoss docs are not very clear with respect to entity beans, "tuned 
> updates", and the optional "isModified" method. If I am using CMP, 
> should I turn on tuned updates, or implement an isModified() method, or 
> both? What about the BMP scenario?

I'd go with tuned-updates for CMP, and isModified for BMP.

reason: isModified will still result in JAWS attempting to update your 
primary key, but tuned updates will fix that. This obnoxious updating of 
primary keys will die in an upcoming release.

tuned-updates is a CMP only feature, so you really can't even specify it 
for BMP.

As long as you're in jaws.xml putting tuned-updates in, you should also 
add 'has-pk-constraint' so that jaws will generate a proper primary key 
definition when it generates your table. If your table already exists, 
make sure you add the primary key constraint, or performance will 
suffer, to put it mildly.


-danch


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

Reply via email to