Person Persons People

Now that the Location class has been created it is time to create our Person class. As the name suggests it represents a single person in the data store.

This class is very similar to the Location class so I will not go in to too much details. Just don’t forget the @Entity and @Id annotations. Make sure you have the constructors created and also your Getters and Setters.

You may notice that I have not setup any relationships between the tables. Technically I am using an SQL ¬†database so I could setup a One To Many type relationship between the Location and Person using a @OneToMany annotation but normalization of database tables is outside the scope of this blog. Instead for this simple application I’m going to keep the two tables unrelated for the time being.

Now that we have our two Entity classes created lets get them pushed to the GIT repository server…

Tagged with: ,
Posted in Domino To Spring, None
%d bloggers like this: