回答編集履歴

1

誤って2重に投稿

2020/01/09 07:13

投稿

YoungTech
YoungTech

スコア11

test CHANGED
@@ -1,3 +1,47 @@
1
1
  https://www.seasar.org/wiki/index.php?DomaUpdateOperationLog#pf9f57c3
2
2
 
3
3
  DomaUpdateLogの1.34.0での変更とは関係ありませんか?
4
+
5
+
6
+
7
+ > エンティティクラスが他のエンティティクラスを継承する場合、@Entityのlistener要素やnaming要素を親から引き継ぐようになりました。
8
+
9
+
10
+
11
+ ```java
12
+
13
+ @Entity(listener = ParentListener.class, naming = NamingType.UPPER_CASE)
14
+
15
+ public class ParentEntity {
16
+
17
+ ...
18
+
19
+ }
20
+
21
+ ```
22
+
23
+ ```java
24
+
25
+ @Entity
26
+
27
+ public class ChildEntity extends ParentEntity {
28
+
29
+ ...
30
+
31
+ }
32
+
33
+ ```
34
+
35
+ > 上記のような継承関係がある場合、上のChildEntityを注釈する@Entityの要素には何も指定されていませんが、次のような指定がある場合と同等です。
36
+
37
+ ```java
38
+
39
+ @Entity(listener = ParentListener.class, naming = NamingType.UPPER_CASE)
40
+
41
+ public class ChildEntity extends ParentEntity {
42
+
43
+ ...
44
+
45
+ }
46
+
47
+ ```