|
|
|
@ -24,7 +24,6 @@ import java.math.BigDecimal; |
|
|
|
import java.math.BigInteger; |
|
|
|
import java.math.BigInteger; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.ZoneId; |
|
|
|
|
|
|
|
import java.time.ZoneOffset; |
|
|
|
import java.time.ZoneOffset; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
@ -34,6 +33,7 @@ import org.assertj.core.api.SoftAssertions; |
|
|
|
import org.junit.ClassRule; |
|
|
|
import org.junit.ClassRule; |
|
|
|
import org.junit.Rule; |
|
|
|
import org.junit.Rule; |
|
|
|
import org.junit.Test; |
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.context.ApplicationListener; |
|
|
|
import org.springframework.context.ApplicationListener; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
@ -53,12 +53,6 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
* Tests storing and retrieving various data types that are considered essential and that might need conversion to |
|
|
|
* Tests storing and retrieving various data types that are considered essential and that might need conversion to |
|
|
|
* something the database driver can handle. |
|
|
|
* something the database driver can handle. |
|
|
|
* |
|
|
|
* |
|
|
|
* |
|
|
|
|
|
|
|
* no millis |
|
|
|
|
|
|
|
* no large BigIntegers |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @author Jens Schauder |
|
|
|
* @author Jens Schauder |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ContextConfiguration |
|
|
|
@ContextConfiguration |
|
|
|
@ -162,10 +156,9 @@ public class JdbcRepositoryPropertyConversionIntegrationTests { |
|
|
|
return entity; |
|
|
|
return entity; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DATAJDBC-119
|
|
|
|
private static LocalDateTime getNow() { |
|
|
|
private static LocalDateTime getNow() { |
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
return LocalDateTime.now().withNano(0); |
|
|
|
|
|
|
|
|
|
|
|
return now.withNano(0); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private Condition<Date> representingTheSameAs(Date other) { |
|
|
|
private Condition<Date> representingTheSameAs(Date other) { |
|
|
|
|