Computer Classes ( Entity, Managed Bean, And Service Classes Essay

939 Words Jan 14th, 2016 4 Pages
2.4 Java classes (Entity, Managed Bean, and Service classes)
2.4.1 Entity classes
An entity class is a lightweight persistence domain object. Each entity represents a table in relational database, and each entity instance corresponds to a row in that table. Datatype of each property in entity class is same as the attributes in the database table. The properties in entity class is used to perform changes in the database. All the properties are private (represented by -) to that class.
USER:
USER
@ID
-ranch_Name: String
-first_Name: String
-last_Name: String
-phone_Number: String
-email: String
-street: String
-city: String
-state: String
-country: String
-zip: int
-user_Name: String
-password: String
-user1: String
-password1: String
-user2: String
-password2: String
-user3: String
-password3: String
+ get and set methods of all the above properties

CALENDAR:
CALENDAR
@ID
@ SequenceGenerator
-record_Number: Integer
-farm_Name: String
-category: String
-category_Group: String
-category_Date: String
-activity: String
-activity_Group: String
-activity_date: String
-notes: String
+ get and set methods of all the above properties

CALENDAR TEMPLATE:
CALENDAR TEMPLATE
@ID
-id: Integer
-category: String
-sub: String
-activity: String
-default_Date: int
-link: String
+ get and set methods of all the above properties

2.4.2 Managed Bean and Service classes
Properties in the Managed Beans are associated with presentation layer. Business logic is performed by the functions…

Related Documents