Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

what makes an Value object?

Thread view: 
Elhanan - 07 Nov 2006 14:15 GMT
hi..

i have an entity class (which is a many to many class) which has
several fields which to me could be in a different object linked by a
one getter and setter.

this class is called RequestPlan and has one person and one policy

it also have InsuranceCode,Insurance Type and several others fields,
which could be in a differnet class as a value object becouse they
represent the product itself, essetially this class wil contain data
about the products and how they are used under the context of the
current policy and person.

what do you think?
Daniel Pitts - 07 Nov 2006 19:38 GMT
> hi..
>
[quoted text clipped - 11 lines]
>
> what do you think?

If it simplifies your code, and satisfies your requirements, I say go
for it.

By simplify, I mean makes it easier to understand.  Keep in mind that
you can always refactor if your current design ends up not being good
enough.
Elhanan - 08 Nov 2006 06:55 GMT
the entire model may simplfy my code, however it does not simply the
process with fills it with data from legacy code.
my model should be saved in a database with hibernate, with many to
many relations, and since the erd does allow duplicate records i won't
allow duplicate instances of entities in my model.
> > hi..
> >
[quoted text clipped - 18 lines]
> you can always refactor if your current design ends up not being good
> enough.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.