Nonverbis

Untitled

Oct 26th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. @MappedSuperclass
  2. public class Thing extends AbstractPersistable<Long> {
  3. @org.hibernate.validator.constraints.URL
  4. private URL url ;
  5. private URL additionalType ;
  6. private String alternateName ;
  7.  
  8. @Column(length = 255)
  9. private String description ;
  10. @Column(length=255)
  11. private String name ;
  12. @org.hibernate.validator.constraints.URL
  13. private URL sameAs ;
  14. @Version
  15. private Integer version ;
  16. @Temporal(TemporalType. TIMESTAMP )
  17. private Date createdDate = new Date();
  18. @Temporal(TemporalType. TIMESTAMP )
  19. private Date lastmodifiedDate = new Date();
  20.  
  21. public URL getAdditionalType() {
  22. return additionalType ;
  23. }
  24.  
  25. public void setAdditionalType(URL additionalType) {
  26. this.additionalType = additionalType;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment