Guest User

Untitled

a guest
Jan 24th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. @Entity // javax.persistence
  2. @Table(name = "supplier") // javax.persistence
  3. public class Supplier {
  4.  
  5. @Id // javax.persistence
  6. private Long id;
  7.  
  8. private String brand;
  9. private String phone;
  10. private String address;
  11.  
  12. public Supplier(){
  13.  
  14. }
  15.  
  16. // public getters and setters for all fields
  17. // omitted for brevity
  18. }
  19.  
  20. /* Do this only if you want to inject a Supplier somewhere. */
  21. @Bean
  22. public Supplier supplier(){
  23. /* define here how a default Supplier should look like */
  24. return new Supplier();
  25. }
Add Comment
Please, Sign In to add comment