Last change
on this file was fdfbdde, checked in by Stojilkova Sara <sara.stojilkova.students.finki.ukim.mk>, 9 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
709 bytes
|
Rev | Line | |
---|
[fdfbdde] | 1 | package com.example.task.entity;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.*;
|
---|
| 4 | import lombok.AllArgsConstructor;
|
---|
| 5 | import lombok.Getter;
|
---|
| 6 | import lombok.NoArgsConstructor;
|
---|
| 7 | import lombok.Setter;
|
---|
| 8 |
|
---|
| 9 | @Entity
|
---|
| 10 | @Table(name = "place", schema = "project")
|
---|
| 11 | @NoArgsConstructor
|
---|
| 12 | @AllArgsConstructor
|
---|
| 13 | @Getter
|
---|
| 14 | @Setter
|
---|
| 15 | public class PlaceEntity {
|
---|
| 16 |
|
---|
| 17 | @Id
|
---|
| 18 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 19 | @Column(name = "place_id")
|
---|
| 20 | private Integer id;
|
---|
| 21 |
|
---|
| 22 | @Column(name = "building_name")
|
---|
| 23 | private String buildingName;
|
---|
| 24 |
|
---|
| 25 | @Column(name = "room_name")
|
---|
| 26 | private String roomName;
|
---|
| 27 |
|
---|
| 28 | public PlaceEntity(String buildingName, String roomName) {
|
---|
| 29 | this.buildingName = buildingName;
|
---|
| 30 | this.roomName = roomName;
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.