Creating entity bean is simple. You have to annotate the class to indicate that it’s an entity bean. Also your class should implement Serializable interface. An example entity bean is presented below. Do note that we have defined a no argument constructor which is a must.
(more…)