Advertisement
Guest User

Untitled

a guest
Aug 28th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. package net.krg.kneip.common;
  2. import java.util.Date;
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.GenerationType;
  6. import javax.persistence.Id;
  7. import javax.persistence.Column;
  8. import net.krg.kneip.domain.DomainEntity;
  9. import net.krg.kneip.security.User;
  10.  
  11.  
  12. @Entity
  13. public class Comment implements DomainEntity {
  14.  
  15.     private Long id;
  16.  
  17.     @Id
  18.     @Column (name="id",unique=true,nullable=false)
  19.     @GeneratedValue(strategy=GenerationType.AUTO)
  20.     public Long getId() {
  21.         return this.id;
  22.     }
  23.  
  24.     public Comment(){
  25.     }
  26.  
  27.     public void finalize() throws Throwable {
  28.     super.finalize();
  29. }
  30.  
  31. }//end Comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement