Added DAO pattern.

This commit is contained in:
Ilkka Seppala
2015-04-12 23:49:00 +03:00
parent 33566805ee
commit 0bded40738
9 changed files with 253 additions and 1 deletions
@@ -0,0 +1,27 @@
package com.iluwatar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Version;
@Entity
public class BaseEntity {
@Id
@GeneratedValue
@Column(name = "ID")
private Long id;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Version
private Long version;
}