reenable some LiteralTests
This commit is contained in:
parent
f9afab5492
commit
df72d7db3d
|
@ -126,8 +126,6 @@ public class LiteralTests {
|
|||
session -> {
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = {ts '2018-01-01T12:30:00'}" )
|
||||
.list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime '2018-01-01 12:30:00'" )
|
||||
// .list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime 2018-01-01 12:30:00" )
|
||||
.list();
|
||||
}
|
||||
|
@ -141,10 +139,6 @@ public class LiteralTests {
|
|||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = {ts '2018-01-01T12:30:00+05:00'}" )
|
||||
.list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = {ts '2018-01-01T12:30:00+05'}" )
|
||||
// .list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime '2018-01-01 12:30:00+05:00'" )
|
||||
// .list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime '2018-01-01 12:30:00+05'" )
|
||||
// .list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime 2018-01-01 12:30:00+05:00" )
|
||||
.list();
|
||||
|
@ -153,8 +147,8 @@ public class LiteralTests {
|
|||
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = {ts '2018-01-01T12:30:00 GMT'}" )
|
||||
.list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime '2018-01-01 12:30:00 GMT'" )
|
||||
// .list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime 2018-01-01 12:30:00 GMT" )
|
||||
.list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime 2018-01-01 12:30:00 'GMT'" )
|
||||
.list();
|
||||
}
|
||||
|
@ -167,8 +161,8 @@ public class LiteralTests {
|
|||
session -> {
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = {ts '2018-01-01T12:30:00 US/Pacific'}" )
|
||||
.list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime '2018-01-01 12:30:00 US/Pacific'" )
|
||||
// .list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime 2018-01-01 12:30:00 US/Pacific" )
|
||||
.list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTimestamp = datetime 2018-01-01 12:30:00 'US/Pacific'" )
|
||||
.list();
|
||||
}
|
||||
|
@ -180,7 +174,6 @@ public class LiteralTests {
|
|||
scope.inTransaction(
|
||||
session -> {
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theDate = {d '2018-01-01'}" ).list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theDate = date '2018-01-01'" ).list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theDate = date 2018-01-01" ).list();
|
||||
}
|
||||
);
|
||||
|
@ -191,9 +184,6 @@ public class LiteralTests {
|
|||
scope.inTransaction(
|
||||
session -> {
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTime = {t '12:30:00'}" ).list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTime = time '12:30'" ).list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTime = time '12:30:00'" ).list();
|
||||
// session.createQuery( "from EntityOfBasics e1 where e1.theTime = time '12:30:00.123'" ).list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTime = time 12:30" ).list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTime = time 12:30:00" ).list();
|
||||
session.createQuery( "from EntityOfBasics e1 where e1.theTime = time 12:30:00.123" ).list();
|
||||
|
@ -232,7 +222,7 @@ public class LiteralTests {
|
|||
assertThat( session.createQuery( "select 10000000000000000bi" )
|
||||
.getSingleResult(), is( BigInteger.valueOf(10000000000000000L) ) );
|
||||
assertThat( session.createQuery( "select 9999999999999.9999bd" )
|
||||
.getSingleResult(), is( BigDecimal.valueOf(99999999999999999L, 4) ) );;
|
||||
.getSingleResult(), is( BigDecimal.valueOf(99999999999999999L, 4) ) );
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue