Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.krg.kneip.common;
- import java.util.Date;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.GenerationType;
- import javax.persistence.Id;
- import javax.persistence.Column;
- import net.krg.kneip.domain.DomainEntity;
- import net.krg.kneip.security.User;
- @Entity
- public class Comment implements DomainEntity {
- private Long id;
- @Id
- @Column (name="id",unique=true,nullable=false)
- @GeneratedValue(strategy=GenerationType.AUTO)
- public Long getId() {
- return this.id;
- }
- public Comment(){
- }
- public void finalize() throws Throwable {
- super.finalize();
- }
- }//end Comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement