source: src/main/java/com/example/task/entity/PlaceEntity.java

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
RevLine 
[fdfbdde]1package com.example.task.entity;
2
3import jakarta.persistence.*;
4import lombok.AllArgsConstructor;
5import lombok.Getter;
6import lombok.NoArgsConstructor;
7import lombok.Setter;
8
9@Entity
10@Table(name = "place", schema = "project")
11@NoArgsConstructor
12@AllArgsConstructor
13@Getter
14@Setter
15public 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.