Skip to content

Commit

Permalink
HHH-15939 test for fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Jul 24, 2023
1 parent 05de3e4 commit 7effc40
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ public void testSimpleUpdateAssignability(SessionFactoryScope scope) {
);
}

@Test
@TestForIssue( jiraKey = "HHH-15939" )
public void testNumericUpdate(SessionFactoryScope scope) {
scope.inTransaction( session -> {
session.createMutationQuery( "update EntityOfBasics set theShort = 69" )
.executeUpdate();
session.createMutationQuery( "update EntityOfBasics set theShort = ?1" )
.setParameter( 1, 69 )
.executeUpdate();
} );
}

@Test
public void testSimpleUpdateWithData(SessionFactoryScope scope) {
scope.inTransaction(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public enum Gender {
private String theString;
private Integer theInteger;
private int theInt;
private short theShort;
private double theDouble;
private URL theUrl;
private Clob theClob;
Expand Down Expand Up @@ -116,6 +117,14 @@ public void setTheInt(int theInt) {
this.theInt = theInt;
}

public short getTheShort() {
return theShort;
}

public void setTheShort(short theShort) {
this.theShort = theShort;
}

public double getTheDouble() {
return theDouble;
}
Expand Down

0 comments on commit 7effc40

Please sign in to comment.