Reputation: 31
I googled and tried many online links to find out the Entity, values and service classes. But nothing found.
Can someone explain with a good example that how to find out such classes from a class diagram?
take this ClassDiagram for instance.
Upvotes: 1
Views: 1021
Reputation: 73376
Entities, values and services seem to refer to a Domain Driven Design context:
In your diagram:
User_vehicle
ssems to have a bad naming. It should be called "Subscription". User
and Vehicle
seem to be aggregate root, with other entities depending on them. Maintenance
and Schedule
seem to belong to the Vehicle
aggregate. It can be discussed whether User_Vehicle
and Reservation
would belong to the User
aggregate or the Vehicle aggregate. Upvotes: 2
Reputation: 1789
It is not easy to answer to your question since you do not precise the context.
Entities are classes whose instances are stored in DB, and after you get the three usual rules to store classes in db. see ORM
If you are in JEE context, these classes are annotated by @Entity (almost).
A point, class diagram does not discover or find out classes, a class diagram helps to model your classes, not to find them.
Upvotes: 0