make a test more robust

This commit is contained in:
Gavin 2022-11-12 22:29:53 +01:00 committed by Gavin King
parent dbc7b2359b
commit f58e450ea8
2 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import jakarta.persistence.Version;
import org.hibernate.annotations.SelectBeforeUpdate;
@ -173,6 +174,7 @@ public class UpdateDetachedTest extends BaseCoreFunctionalTestCase{
}
@Entity(name = "Foo")
@Table(name = "FooSBU")
@SelectBeforeUpdate
public static class Foo {
@Id
@ -228,6 +230,7 @@ public class UpdateDetachedTest extends BaseCoreFunctionalTestCase{
}
@Entity(name = "Bar")
@Table(name = "BarSBU")
public static class Bar {
@Id
private Integer id;
@ -280,6 +283,7 @@ public class UpdateDetachedTest extends BaseCoreFunctionalTestCase{
}
@Embeddable
@Table(name = "CommentSBU")
public static class Comment {
@Column(name = "bar_comment")
private String comment;

View File

@ -33,7 +33,6 @@ import static org.junit.Assert.fail;
*
* @author Hardy Ferentschik
*/
@SuppressWarnings({ "deprecation" })
public class AccessMappingTest {
private ServiceRegistry serviceRegistry;