Ok, Here is my problem.
I have a table named Master_Info_tbl. Its a lookup table:
Here is the code for the table:
@Entity
@Table(name="MASTER_INFO_T")
public class CodeValue implements java.io.Serializable {
private static final long serialVersionUID = -3732397626260983394L;
private Integer objectid;
private String codetype;
private String code;
private String shortdesc;
private String longdesc;
private Integer dptid;
private Integer sequen;
private Timestamp begindate;
private Timestamp enddate;
private String username;
private Timestamp rowlastchange;
//getter Setter methods
I have a service layer which calls the method
service.findbycodeType("Code1");
same way this table is queried for the other code types as well e.g. code2, code3 and so on till code10 which gets the result set from the same table and is shown into the drop down of the jsp pages since these drop downs are in 90% of the pages I am thinking to cache them globally.
Any idea how to achieve this?
FYI: I am using JPA and Hibernate with Struts2 and Spring. The database being used is DB2 UDB8.2
Please help!