Posts

Sample Crud Using Spring MVC + JDBC Template + PostgreSQL + Primefaces Part 02

In this lesson we are going to talk about how to create entities, managers, services and the beans first we need to create our entity classes, in the previous session we talk about we have 3 tables COUNTRY, CITY and EMPLOYEE. so we need to create entity classes for those. Country.java package com . test . entity; import java.io.Serializable ; import java.util.ArrayList ; import java.util.Date ; import java.util.List ; /* Country Entity */ public class Country implements Serializable { private static final long serialVersionUID = 1L ; private Integer countryId; private String name; private String code; private Date addedDate; private Short statCode; private List < City > cities = new ArrayList < City > ( 0 ); private List < Employee > employees = new ArrayList < Employee > ( 0 ); // Getters & Setters public Integer getCountryId() { return countryId; } public void setCountryId(Integer countryId) { this . countryId ...
Recent posts