Posts

spring core exp

A.java package com.jtc.p1; public class A {     int a;     String msg;        //setter injection.         public void setA(int a){            //setter injection         System.out.println("SetA(int a) setter injection in A class");         this.a=a;     }         public void setMsg(String msg){            //setter injection.         System.out.println("setMsg(String msg) setter injection in B class");         this.msg=msg;     }         void showA(){         System.out.println("showA() method in A");         System.out.println(a);  ...

hibernate exm with annotation

package com.jtc.p1; import java.util.List; import java.util.Map; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.Table; import org.hibernate.annotations.CollectionOfElements; import org.hibernate.annotations.IndexColumn; @Entity @Table(name="stud") public class Student_Pojo {         @Id     @GeneratedValue(strategy=GenerationType.AUTO)     @Column(name="sid")     private int sid;         @Column(name="sname")     private String sname;         @Column(name="dob")     private String dob;         @Column(name="qualification")     private...

hibernate jar file with annotation