in my applicationContext.xml, this is how I map xml to POJO. how to map directory to class file without required to create xml?
@Pascal Thivent gives a very good start to what you want to do. For each Entity class you will need to annotate them. This is the docs that expalin the annotations in Hibernate.
e.g. From the docs:
@Entity
public class Flight implements Serializable {
Long id;
@Id
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
}
So in addition to what was mentioned by @Pascal Thivent you should get everything you need.