-
Notifications
You must be signed in to change notification settings - Fork 538
/
Copy pathAuthor.java
192 lines (156 loc) · 4.82 KB
/
Author.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
package com.bookstore.entity;
import java.util.Objects;
import javax.persistence.Transient;
import org.hibernate.bytecode.enhance.internal.tracker.DirtyTracker;
import org.hibernate.engine.spi.EntityEntry;
import org.hibernate.engine.spi.ManagedEntity;
@javax.persistence.Entity
public class Author
implements java.io.Serializable, ManagedEntity, org.hibernate.engine.spi.SelfDirtinessTracker
{
private static final long serialVersionUID = 1L;
@javax.persistence.Id
@javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.IDENTITY)
private Long id;
private String name;
private String genre;
public Author() {}
public Long getId() { return $$_hibernate_read_id(); }
private int age;
public void setId(Long id) { $$_hibernate_write_id(id); }
public String getName() { return $$_hibernate_read_name(); }
@Transient
private transient EntityEntry $$_hibernate_entityEntryHolder;
public void setName(String name) { $$_hibernate_write_name(name); }
@Transient
private transient ManagedEntity $$_hibernate_previousManagedEntity;
public String getGenre() { return $$_hibernate_read_genre(); }
public void setGenre(String genre)
{
$$_hibernate_write_genre(genre);
}
public int getAge() {
return $$_hibernate_read_age();
}
public void setAge(int age) {
$$_hibernate_write_age(age);
}
@Transient
private transient ManagedEntity $$_hibernate_nextManagedEntity;
@Transient
private transient DirtyTracker $$_hibernate_tracker;
public Object $$_hibernate_getEntityInstance()
{
return this;
}
public EntityEntry $$_hibernate_getEntityEntry()
{
return $$_hibernate_entityEntryHolder;
}
public void $$_hibernate_setEntityEntry(EntityEntry paramEntityEntry)
{
$$_hibernate_entityEntryHolder = paramEntityEntry;
}
public ManagedEntity $$_hibernate_getPreviousManagedEntity()
{
return $$_hibernate_previousManagedEntity;
}
public void $$_hibernate_setPreviousManagedEntity(ManagedEntity paramManagedEntity)
{
$$_hibernate_previousManagedEntity = paramManagedEntity;
}
public ManagedEntity $$_hibernate_getNextManagedEntity()
{
return $$_hibernate_nextManagedEntity;
}
public void $$_hibernate_setNextManagedEntity(ManagedEntity paramManagedEntity)
{
$$_hibernate_nextManagedEntity = paramManagedEntity;
}
public void $$_hibernate_trackChange(String paramString)
{
if ($$_hibernate_tracker == null)
{
this;
$$_hibernate_tracker = new org.hibernate.bytecode.enhance.internal.tracker.SimpleFieldTracker();
}
$$_hibernate_tracker.add(paramString);
}
public String[] $$_hibernate_getDirtyAttributes()
{
Object localObject = this;
localObject = null;
localObject = $$_hibernate_tracker == null ? new String[0] : $$_hibernate_tracker.get();
return localObject;
}
public boolean $$_hibernate_hasDirtyAttributes()
{
Author localAuthor = this;
boolean bool = false;
bool = ($$_hibernate_tracker != null) && (!$$_hibernate_tracker.isEmpty());
return bool;
}
public void $$_hibernate_clearDirtyAttributes()
{
if ($$_hibernate_tracker != null) {
$$_hibernate_tracker.clear();
}
}
public void $$_hibernate_suspendDirtyTracking(boolean paramBoolean)
{
if ($$_hibernate_tracker == null)
{
this;
$$_hibernate_tracker = new org.hibernate.bytecode.enhance.internal.tracker.SimpleFieldTracker();
}
$$_hibernate_tracker.suspend(paramBoolean);
}
public org.hibernate.bytecode.enhance.spi.CollectionTracker $$_hibernate_getCollectionTracker()
{
Object localObject = this;
localObject = null;
localObject = org.hibernate.bytecode.enhance.internal.tracker.NoopCollectionTracker.INSTANCE;
return localObject;
}
public Long $$_hibernate_read_id()
{
return id;
}
public void $$_hibernate_write_id(Long paramLong)
{
id = paramLong;
}
public String $$_hibernate_read_name()
{
return name;
}
public void $$_hibernate_write_name(String paramString)
{
if (!Objects.deepEquals(paramString, name)) {
$$_hibernate_trackChange("name");
}
name = paramString;
}
public String $$_hibernate_read_genre()
{
return genre;
}
public void $$_hibernate_write_genre(String paramString)
{
if (!Objects.deepEquals(paramString, genre)) {
$$_hibernate_trackChange("genre");
}
genre = paramString;
}
public int $$_hibernate_read_age()
{
return age;
}
public void $$_hibernate_write_age(int paramInt)
{
if (paramInt - age != 0) {
$$_hibernate_trackChange("age");
}
age = paramInt;
}
}