Last change
on this file was f7c05a1, checked in by Elena Shulevska <elena.shulevska@…>, 15 months ago |
initial commit of the source code on origin
|
-
Property mode
set to
100644
|
File size:
629 bytes
|
Rev | Line | |
---|
[f7c05a1] | 1 | package com.example.villadihovo.model.offers;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.*;
|
---|
| 4 | import lombok.AllArgsConstructor;
|
---|
| 5 | import lombok.Data;
|
---|
| 6 | import lombok.NoArgsConstructor;
|
---|
| 7 |
|
---|
| 8 | @Data
|
---|
| 9 | @AllArgsConstructor
|
---|
| 10 | @NoArgsConstructor
|
---|
| 11 | @Entity
|
---|
| 12 | @Table(name="rooms")
|
---|
| 13 | public class Rooms {
|
---|
| 14 |
|
---|
| 15 | @Id
|
---|
| 16 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 17 | private int room_id;
|
---|
| 18 |
|
---|
| 19 | @Column(nullable = false)
|
---|
| 20 | private String room_type;
|
---|
| 21 |
|
---|
| 22 | @Column(nullable = false)
|
---|
| 23 | private int price;
|
---|
| 24 |
|
---|
| 25 | @Column(nullable = false)
|
---|
| 26 | private boolean availability;
|
---|
| 27 |
|
---|
| 28 | @ManyToOne
|
---|
| 29 | @JoinColumn(name = "villa_id", nullable = false)
|
---|
| 30 | private Villa villa_id;
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.