Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. @EntityListeners(AuditingEntityListener.class)
  2. @Document
  3. public class ServiceView implements Serializable {
  4.  
  5. ...
  6.  
  7. @LastModifiedDate
  8. private Date updatedOn;
  9.  
  10. ...
  11.  
  12. @PreUpdate
  13. public void onUpdate(){
  14. this.updatedOn = new Date();
  15. }
  16.  
  17. ...
  18.  
  19. }
  20.  
  21. @EntityListeners(AuditingEntityListener.class)
  22. @Document
  23. public class ServiceView implements Serializable {
  24.  
  25. ...
  26.  
  27. @LastModifiedDate
  28. private Date updatedOn;
  29.  
  30. ...
  31.  
  32. }
  33.  
  34. io.eventuate.EventuateCommandProcessingFailedException: java.lang.IllegalArgumentException: Couldn't find PersistentEntity for type class com.domain.data.ServiceView!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement