Skip to content

Commit f58e450

Browse files
committed
make a test more robust
1 parent dbc7b23 commit f58e450

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/selectbeforeupdate/UpdateDetachedTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import jakarta.persistence.Id;
1616
import jakarta.persistence.JoinColumn;
1717
import jakarta.persistence.ManyToOne;
18+
import jakarta.persistence.Table;
1819
import jakarta.persistence.Version;
1920

2021
import org.hibernate.annotations.SelectBeforeUpdate;
@@ -173,6 +174,7 @@ public void testUpdateDetachedWithAttachedPersistentSet() {
173174
}
174175

175176
@Entity(name = "Foo")
177+
@Table(name = "FooSBU")
176178
@SelectBeforeUpdate
177179
public static class Foo {
178180
@Id
@@ -228,6 +230,7 @@ public void setVersion(Integer version) {
228230
}
229231

230232
@Entity(name = "Bar")
233+
@Table(name = "BarSBU")
231234
public static class Bar {
232235
@Id
233236
private Integer id;
@@ -280,6 +283,7 @@ public void setComments(Set<Comment> comments) {
280283
}
281284

282285
@Embeddable
286+
@Table(name = "CommentSBU")
283287
public static class Comment {
284288
@Column(name = "bar_comment")
285289
private String comment;

hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/access/jpa/AccessMappingTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
*
3434
* @author Hardy Ferentschik
3535
*/
36-
@SuppressWarnings({ "deprecation" })
3736
public class AccessMappingTest {
3837
private ServiceRegistry serviceRegistry;
3938

0 commit comments

Comments
 (0)