SHARE
TWEET

Untitled

a guest Jun 25th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Entity
  2. @NamedQueries({
  3.         @NamedQuery(name="momain.getmomains",
  4.                 query="SELECT e FROM momain e")
  5. })
  6. @Data
  7. public class momain implements Serializable {
  8.  
  9.     @Id
  10.     @GeneratedValue(strategy = GenerationType.IDENTITY)
  11.  
  12.     private Integer domainId;
  13.  
  14.     private String name;
  15.  
  16.  
  17.  
  18.     @OneToMany(mappedBy = "domain", cascade = CascadeType.ALL )
  19.     @ToString.Exclude
  20.     private List<Comomain> comomain = new ArrayList<>();
  21.  
  22.  
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top