main
Last change
on this file since b00d81b was ada7108, checked in by Filip Chorbeski <86695898+FilipChorbeski@…>, 20 months ago |
change ids from int to Integer
Co-Authored-By: SazdovaEkaterina <74919977+SazdovaEkaterina@…>
|
-
Property mode
set to
100644
|
File size:
859 bytes
|
Rev | Line | |
---|
[3d3e59d] | 1 | package finki.paw5.model.entities;
|
---|
[d427a07] | 2 |
|
---|
[038c9f7] | 3 | import jakarta.persistence.*;
|
---|
[d427a07] | 4 | import lombok.Data;
|
---|
| 5 |
|
---|
| 6 | @Data
|
---|
| 7 | @Entity
|
---|
| 8 | @Table(name = "organisation")
|
---|
| 9 | public class Organisation {
|
---|
| 10 |
|
---|
| 11 | @Id
|
---|
[038c9f7] | 12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
[d427a07] | 13 | @Column(name = "id_organisation")
|
---|
[ada7108] | 14 | private Integer id;
|
---|
[d427a07] | 15 |
|
---|
| 16 | @Column(name = "name_organisation", nullable = false, length = 100)
|
---|
| 17 | private String name;
|
---|
| 18 |
|
---|
| 19 | @Column(name = "email_organisation", nullable = false, length = 100, unique = true)
|
---|
| 20 | private String email;
|
---|
| 21 |
|
---|
| 22 | @Column(name = "billing_information", nullable = false, length = 20, unique = true)
|
---|
| 23 | private String billingInformation;
|
---|
| 24 |
|
---|
| 25 | public Organisation(String name, String email, String billingInformation) {
|
---|
| 26 | this.name = name;
|
---|
| 27 | this.email = email;
|
---|
| 28 | this.billingInformation = billingInformation;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | public Organisation() {
|
---|
| 32 | }
|
---|
| 33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.