Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity // javax.persistence
- @Table(name = "supplier") // javax.persistence
- public class Supplier {
- @Id // javax.persistence
- private Long id;
- private String brand;
- private String phone;
- private String address;
- public Supplier(){
- }
- // public getters and setters for all fields
- // omitted for brevity
- }
- /* Do this only if you want to inject a Supplier somewhere. */
- @Bean
- public Supplier supplier(){
- /* define here how a default Supplier should look like */
- return new Supplier();
- }
Add Comment
Please, Sign In to add comment