47 lines
966 B
Java
Executable File
47 lines
966 B
Java
Executable File
package com.ankurm.hibernatedemo.mappingstyle;
|
|
|
|
/**
|
|
* Deliberately annotation-free POJO, mapped only through
|
|
* {@code HbmEmployee.hbm.xml} (legacy Hibernate mapping format).
|
|
*
|
|
* <p>Backs the empirical hbm.xml probe in {@code HbmXmlBootTest}. Docs: docs/04-annotations-vs-xml.md.
|
|
*/
|
|
public class HbmEmployee {
|
|
|
|
private Long id;
|
|
private String firstName;
|
|
private String email;
|
|
|
|
public HbmEmployee() {
|
|
}
|
|
|
|
public HbmEmployee(String firstName, String email) {
|
|
this.firstName = firstName;
|
|
this.email = email;
|
|
}
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getFirstName() {
|
|
return firstName;
|
|
}
|
|
|
|
public void setFirstName(String firstName) {
|
|
this.firstName = firstName;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
}
|