users@glassfish.java.net

packaging strategy:best practice

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 May 2007 12:43:28 PDT

I have several entities in my project. I would like to know what would be the best practice to package the methods associated.

Should I create methods in the entity class itself eg
Person.create() or Person.delete()

OR
Should I create independent overloaded methods eg.
create(Person person)
create(Department department) and so on

Could anyone point me to an ideal/practical project structure...

Thanks.
Ketan
[Message sent by forum member 'ketancmaheshwari' (ketancmaheshwari)]

http://forums.java.net/jive/thread.jspa?messageID=217467