Hi,
How to design create method in entity beans when table has many columns...
-- is good to pass all the columns has method arguments
-- Pass an object(Record Object which has all setter and getter methods)
--Thxs\SuresH
-
How to design create method in entity beans when table is 30 col (3 messages)
- Posted by: suresh muraki
- Posted on: August 11 2003 15:22 EDT
Threaded Messages (3)
- How to design create method in entity beans when table is 30 col by Chris Turner on August 11 2003 16:19 EDT
- How to design create method in entity beans when table is 30 col by Tim Allen MO on August 11 2003 17:26 EDT
- Why not CMP for 30 coloumns by Sugra Moin on August 12 2003 03:59 EDT
- How to design create method in entity beans when table is 30 col by Tim Allen MO on August 11 2003 17:26 EDT
-
How to design create method in entity beans when table is 30 col[ Go to top ]
- Posted by: Chris Turner
- Posted on: August 11 2003 16:19 EDT
- in response to suresh muraki
I think the depends on the database design as well as technical issues. For a create method you need to provide at a minimum all of the non-null fields. You could then do this and then use normal sets on all of the other fields. Passing in a value object as you suggested is also an option, especially if the number of field may change over time. -
How to design create method in entity beans when table is 30 col[ Go to top ]
- Posted by: Tim Allen MO
- Posted on: August 11 2003 17:26 EDT
- in response to Chris Turner
Just adding to all this my opinion would be don`t use CMP for 30 column table -
Why not CMP for 30 coloumns[ Go to top ]
- Posted by: Sugra Moin
- Posted on: August 12 2003 15:59 EDT
- in response to Tim Allen MO
Why Not CMP for 30 coloumns ?
List me the drawbacks....