-
Notifications
You must be signed in to change notification settings - Fork 31
/
Book.java
31 lines (26 loc) · 992 Bytes
/
Book.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* JPAstreamer - Express JPA queries with Java Streams
* Copyright (c) 2020-2022, Speedment, Inc. All Rights Reserved.
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* See: https://github.com/speedment/jpa-streamer/blob/master/LICENSE
*/
package com.speedment.jpastreamer.integration.test.inheritance.model;
import jakarta.persistence.*;
@Entity
@Table(name = "books", schema = "publications")
public class Book extends Publication {
@Column(name = "pages", nullable = false, updatable = false, columnDefinition = "int(6)")
private Integer pages;
public Integer getPages() {
return pages;
}
public void setPages(Integer pages) {
this.pages = pages;
}
}