#392 - Added example for deferred repository initialization.
This commit is contained in:
210
jpa/deferred/README.adoc
Normal file
210
jpa/deferred/README.adoc
Normal file
@@ -0,0 +1,210 @@
|
||||
= Spring Data JPA - Deferred bootstrap modes
|
||||
|
||||
The project shows what's necessary to use Spring Data JPA's bootstrap modes to optimize the startup type with different trade-offs. It consists of:
|
||||
|
||||
* 2000 JPA entities
|
||||
* 2000 Spring Data JPA repositories
|
||||
* 2000 Spring Beans referring to the repositories
|
||||
|
||||
== tl;dr
|
||||
|
||||
The example can be run in three different modes that will expose significant differences in bootstrap time:
|
||||
|
||||
[cols="1,1,1,4", options="header"]
|
||||
|====
|
||||
|Mode|Profile|Startup time|Comment
|
||||
|_DEFAULT_|none|35s|Standard JPA infrastructure and repository bootstrap.
|
||||
|_DEFERRED_|`deferred`|23s|Background JPA infrastructure initialization and repository initialization deferred until the `ApplicationContext` has completed its initialization.
|
||||
|_LAZY_|`lazy`|13s|Background JPA infrastructure initialization. Repository initialization deferred until first access.
|
||||
|====
|
||||
|
||||
== Details
|
||||
|
||||
=== Default mode
|
||||
|
||||
* Uses Spring Boot's default `LocalContainerEntityManagerFactoryBean` mode for synchronous JPA bootstrap.
|
||||
* Uses Spring Data's default repository bootstrap mode.
|
||||
|
||||
The bootstrap log will look like follows:
|
||||
|
||||
[source, bash]
|
||||
----
|
||||
2018-08-16 14:38:49.540 INFO 44538 --- [ main] example.Application : Starting Application v2.0.0.BUILD-SNAPSHOT on …
|
||||
2018-08-16 14:38:49.544 INFO 44538 --- [ main] example.Application : No active profile set, falling back to default profiles: default
|
||||
2018-08-16 14:38:51.034 INFO 44538 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
|
||||
2018-08-16 14:38:53.433 INFO 44538 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2390ms. Found 2000 repository interfaces.
|
||||
2018-08-16 14:38:54.444 INFO 44538 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
|
||||
2018-08-16 14:38:54.447 WARN 44538 --- [ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=org.hsqldb.jdbcDriver was not found, trying direct instantiation.
|
||||
2018-08-16 14:38:54.773 INFO 44538 --- [ main] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Driver does not support get/set network timeout for connections. (feature not supported)
|
||||
2018-08-16 14:38:54.776 INFO 44538 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
|
||||
2018-08-16 14:38:55.068 INFO 44538 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default ...] <1>
|
||||
2018-08-16 14:38:55.144 INFO 44538 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.5.Final}
|
||||
2018-08-16 14:38:55.146 INFO 44538 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
|
||||
2018-08-16 14:38:55.473 INFO 44538 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
|
||||
2018-08-16 14:38:55.875 INFO 44538 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.HSQLDialect
|
||||
2018-08-16 14:39:00.977 INFO 44538 --- [ main] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@60169e0f'
|
||||
2018-08-16 14:39:00.985 INFO 44538 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||
2018-08-16 14:39:23.378 INFO 44538 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
|
||||
2018-08-16 14:39:23.504 INFO 44538 --- [ main] example.Application : Started Application in 34.423 seconds (JVM running for 34.899)
|
||||
----
|
||||
<1> JPA is bootstrapped synchronously and thus will block all initialization of repositories and downstream components until its completion.
|
||||
|
||||
== Deferred mode
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
To run the example in deferred mode, start it with the `deferred` profile activated.
|
||||
|
||||
[source, bash]
|
||||
----
|
||||
$ java -jar -Dspring.profiles.active=deferred target/*.jar`
|
||||
----
|
||||
====
|
||||
|
||||
* Uses a custom `LocalContainerEntityManagerFactoryBean` configured with a `ThreadPoolTaskExecutor` (see `Application.LazyJpaConfiguration`) to enable JPA initialization in a background thread.
|
||||
* Uses Spring Data's deferred repository initialization mechanism that creates lazy injection proxies for repositories so that downstream Spring beans can already be instantiated while JPA still bootstraps.
|
||||
Repository initialization is eventually triggered on `ContextRefreshedEvent` to make sure all initialization and verification has been performed before the application starts taking requests.
|
||||
|
||||
[source, bash]
|
||||
----
|
||||
. ____ _ __ _ _
|
||||
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
|
||||
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
|
||||
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
|
||||
' |____| .__|_| |_|_| |_\__, | / / / /
|
||||
=========|_|==============|___/=/_/_/_/
|
||||
:: Spring Boot :: (v2.1.0.BUILD-SNAPSHOT)
|
||||
|
||||
2018-08-16 14:51:15.294 INFO 45068 --- [ main] example.Application : Starting Application v2.0.0.BUILD-SNAPSHOT on Serendipity-3.local with PID 45068 (/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar started by olivergierke in /Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred)
|
||||
2018-08-16 14:51:15.294 INFO 45068 --- [ main] example.Application : The following profiles are active: deferred
|
||||
2018-08-16 14:51:15.294 DEBUG 45068 --- [ main] o.s.boot.SpringApplication : Loading source class example.Application
|
||||
2018-08-16 14:51:15.329 DEBUG 45068 --- [ main] o.s.b.c.c.ConfigFileApplicationListener : Activated activeProfiles deferred
|
||||
2018-08-16 14:51:15.329 DEBUG 45068 --- [ main] o.s.b.c.c.ConfigFileApplicationListener : Loaded config file 'jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/application.properties' (classpath:/application.properties)
|
||||
2018-08-16 14:51:15.330 DEBUG 45068 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@71f2a7d5
|
||||
2018-08-16 14:51:15.342 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
|
||||
2018-08-16 14:51:15.354 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory'
|
||||
2018-08-16 14:51:15.596 DEBUG 45068 --- [ main] o.s.c.a.ClassPathBeanDefinitionScanner : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/Application$LazyJpaConfiguration.class]
|
||||
2018-08-16 14:51:15.644 DEBUG 45068 --- [ main] o.s.c.a.ClassPathBeanDefinitionScanner : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/service/Customer1803Service.class]
|
||||
… <1>
|
||||
2018-08-16 14:51:16.160 DEBUG 45068 --- [ main] o.s.c.a.ClassPathBeanDefinitionScanner : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/service/Customer1830Service.class]
|
||||
2018-08-16 14:51:16.614 INFO 45068 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFERRED mode.
|
||||
2018-08-16 14:51:16.636 DEBUG 45068 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Scanning for repositories in packages example.
|
||||
2018-08-16 14:51:16.764 DEBUG 45068 --- [ main] o.s.d.r.c.RepositoryComponentProvider : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/repo/Customer177Repository.class]
|
||||
… <2>
|
||||
2018-08-16 14:51:16.879 DEBUG 45068 --- [ main] o.s.d.r.c.RepositoryComponentProvider : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/repo/Customer829Repository.class]
|
||||
2018-08-16 14:51:19.087 DEBUG 45068 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Registering deferred repository initialization listener.
|
||||
2018-08-16 14:51:19.088 INFO 45068 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2451ms. Found 2000 repository interfaces.
|
||||
… <3>
|
||||
2018-08-16 14:51:20.712 DEBUG 45068 --- [lTaskExecutor-1] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
|
||||
2018-08-16 14:51:20.719 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'application'
|
||||
2018-08-16 14:51:20.720 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'customer1803Service'
|
||||
2018-08-16 14:51:20.721 DEBUG 45068 --- [ main] ate$LazyRepositoryInjectionPointResolver : Creating lazy injection proxy for example.repo.Customer1803Repository…
|
||||
… <4>
|
||||
2018-08-16 14:51:26.118 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'customer1830Service'
|
||||
2018-08-16 14:51:26.118 DEBUG 45068 --- [ main] ate$LazyRepositoryInjectionPointResolver : Creating lazy injection proxy for example.repo.Customer1830Repository…
|
||||
… <5>
|
||||
2018-08-16 14:51:27.489 INFO 45068 --- [lTaskExecutor-1] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||
… <6>
|
||||
2018-08-16 14:51:27.801 INFO 45068 --- [ main] DeferredRepositoryInitializationListener : Triggering deferred initialization of Spring Data repositories…
|
||||
2018-08-16 14:51:27.806 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'customer1747Repository'
|
||||
2018-08-16 14:51:27.842 DEBUG 45068 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'jpaMappingContext'
|
||||
2018-08-16 14:51:27.842 DEBUG 45068 --- [ main] .c.JpaMetamodelMappingContextFactoryBean : Initializing JpaMetamodelMappingContext…
|
||||
2018-08-16 14:51:27.860 DEBUG 45068 --- [ main] .c.JpaMetamodelMappingContextFactoryBean : Finished initializing JpaMetamodelMappingContext!
|
||||
2018-08-16 14:51:27.869 DEBUG 45068 --- [ main] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
|
||||
2018-08-16 14:51:27.936 DEBUG 45068 --- [ main] o.s.orm.jpa.EntityManagerFactoryUtils : Closing JPA EntityManager
|
||||
2018-08-16 14:51:27.938 DEBUG 45068 --- [ main] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
|
||||
2018-08-16 14:51:27.939 DEBUG 45068 --- [ main] o.s.orm.jpa.EntityManagerFactoryUtils : Closing JPA EntityManager
|
||||
2018-08-16 14:51:27.979 DEBUG 45068 --- [ main] o.s.d.r.c.s.RepositoryFactorySupport : Initializing repository instance for example.repo.Customer1747Repository…
|
||||
2018-08-16 14:51:27.995 DEBUG 45068 --- [ main] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
|
||||
2018-08-16 14:51:27.995 DEBUG 45068 --- [ main] o.s.orm.jpa.EntityManagerFactoryUtils : Closing JPA EntityManager
|
||||
2018-08-16 14:51:28.021 DEBUG 45068 --- [ main] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
|
||||
2018-08-16 14:51:28.021 DEBUG 45068 --- [ main] o.s.orm.jpa.EntityManagerFactoryUtils : Closing JPA EntityManager
|
||||
2018-08-16 14:51:28.038 DEBUG 45068 --- [ main] o.s.d.j.r.query.JpaQueryFactory : Looking up query for method findByLastName
|
||||
2018-08-16 14:51:28.041 DEBUG 45068 --- [ main] o.s.d.jpa.repository.query.NamedQuery : Looking up named query Customer1747.findByLastName
|
||||
2018-08-16 14:51:28.043 DEBUG 45068 --- [ main] o.s.d.jpa.repository.query.NamedQuery : Did not find named query Customer1747.findByLastName
|
||||
2018-08-16 14:51:28.045 DEBUG 45068 --- [ main] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
|
||||
2018-08-16 14:51:28.045 DEBUG 45068 --- [ main] o.s.orm.jpa.EntityManagerFactoryUtils : Closing JPA EntityManager
|
||||
2018-08-16 14:51:28.098 DEBUG 45068 --- [ main] o.s.d.r.c.s.RepositoryFactorySupport : Finished creation of repository instance for example.repo.Customer1747Repository.
|
||||
… <7>
|
||||
2018-08-16 14:51:37.882 INFO 45068 --- [ main] DeferredRepositoryInitializationListener : Spring Data repositories initialized!
|
||||
2018-08-16 14:51:37.894 INFO 45068 --- [ main] example.Application : Started Application in 22.961 seconds (JVM running for 23.438)
|
||||
----
|
||||
<1> Spring triggered application component scanning and finds all services.
|
||||
<2> Spring Data repository scanning is started and finds all repository interfaces.
|
||||
<3> JPA bootstrap is initialized in a background thread.
|
||||
<4> In the meantime, Spring beans are instantiated using lazy injection proxies for repositories to prevent the service instantiation from blocking on the JPA initialization. You should see the logs for the component initialization interleave with JPA initialization log output from the background thread.
|
||||
<5> Spring bean instantiation completed while JPA still bootstraps. The container now waits for the JPA bootstrap to complete
|
||||
<6> ApplicationContext publishes a `ContextRefreshedEvent` and triggers the repository initialization to make sure they properly bootstrap before the application is used.
|
||||
<7> Repository initialization finishes and the application is started.
|
||||
|
||||
Note, how we gained 10 seconds of startup time by shifting most of the downstream component initialization work into the JPA bootstrap phase that happens in the background.
|
||||
The key aspect here is that we created lazy injection proxies for the repositories, so that we can already inject them into clients to not block their initialization.
|
||||
Still we have initialized and verified (query methods etc.) the repositories completely when the application starts.
|
||||
|
||||
== Lazy mode
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
To run the example in lazy mode, start it with the `lazy` profile activated.
|
||||
|
||||
[source, bash]
|
||||
----
|
||||
$ java -jar -Dspring.profiles.active=lazy target/*.jar`
|
||||
----
|
||||
====
|
||||
|
||||
* Uses a custom `LocalContainerEntityManagerFactoryBean` configured with a `ThreadPoolTaskExecutor` (see `Application.LazyJpaConfiguration`) to enable JPA initialization in a background thread.
|
||||
* Uses Spring Data's lazy repository initialization mechanism that creates lazy injection proxies for repositories so that downstream Spring beans can already be instantiated while JPA still bootstraps.
|
||||
Repository initialization is completely skipped for the application to start quicker but accepting that repository initialization and verification will only be triggered for components in use to answer a request when they actually start calling methods on the repository instance.
|
||||
|
||||
[source, bash]
|
||||
----
|
||||
. ____ _ __ _ _
|
||||
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
|
||||
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
|
||||
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
|
||||
' |____| .__|_| |_|_| |_\__, | / / / /
|
||||
=========|_|==============|___/=/_/_/_/
|
||||
:: Spring Boot :: (v2.1.0.BUILD-SNAPSHOT)
|
||||
|
||||
2018-08-16 15:02:50.642 INFO 45568 --- [ main] example.Application : Starting Application v2.0.0.BUILD-SNAPSHOT on Serendipity-3.local with PID 45568 (/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar started by olivergierke in /Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred)
|
||||
2018-08-16 15:02:50.642 INFO 45568 --- [ main] example.Application : The following profiles are active: lazy
|
||||
2018-08-16 15:02:50.642 DEBUG 45568 --- [ main] o.s.boot.SpringApplication : Loading source class example.Application
|
||||
2018-08-16 15:02:50.684 DEBUG 45568 --- [ main] o.s.b.c.c.ConfigFileApplicationListener : Activated activeProfiles lazy
|
||||
2018-08-16 15:02:50.684 DEBUG 45568 --- [ main] o.s.b.c.c.ConfigFileApplicationListener : Loaded config file 'jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/application.properties' (classpath:/application.properties)
|
||||
2018-08-16 15:02:50.684 DEBUG 45568 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@224aed64
|
||||
2018-08-16 15:02:50.700 DEBUG 45568 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'org.springframework.context.annotation.internalConfigurationAnnotationProcessor'
|
||||
2018-08-16 15:02:50.713 DEBUG 45568 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory'
|
||||
2018-08-16 15:02:50.945 DEBUG 45568 --- [ main] o.s.c.a.ClassPathBeanDefinitionScanner : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/Application$LazyJpaConfiguration.class]
|
||||
2018-08-16 15:02:50.989 DEBUG 45568 --- [ main] o.s.c.a.ClassPathBeanDefinitionScanner : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/service/Customer1803Service.class]
|
||||
… <1>
|
||||
2018-08-16 15:02:51.442 DEBUG 45568 --- [ main] o.s.c.a.ClassPathBeanDefinitionScanner : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/service/Customer1830Service.class]
|
||||
2018-08-16 15:02:51.907 INFO 45568 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in LAZY mode.
|
||||
2018-08-16 15:02:51.917 DEBUG 45568 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Scanning for repositories in packages example.
|
||||
2018-08-16 15:02:52.048 DEBUG 45568 --- [ main] o.s.d.r.c.RepositoryComponentProvider : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/repo/Customer177Repository.class]
|
||||
… <2>
|
||||
2018-08-16 15:02:52.152 DEBUG 45568 --- [ main] o.s.d.r.c.RepositoryComponentProvider : Identified candidate component class: URL [jar:file:/Users/olivergierke/Documents/workspace/spring-data-examples/jpa/deferred/target/spring-data-jpa-deferred-2.0.0.BUILD-SNAPSHOT.jar!/BOOT-INF/classes!/example/repo/Customer829Repository.class]
|
||||
2018-08-16 15:02:54.267 INFO 45568 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2350ms. Found 2000 repository interfaces.
|
||||
… <3>
|
||||
2018-08-16 15:02:55.942 DEBUG 45568 --- [lTaskExecutor-1] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
|
||||
2018-08-16 15:02:55.952 DEBUG 45568 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'application'
|
||||
2018-08-16 15:02:55.954 DEBUG 45568 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'customer1803Service'
|
||||
2018-08-16 15:02:55.954 DEBUG 45568 --- [ main] ate$LazyRepositoryInjectionPointResolver : Creating lazy injection proxy for example.repo.Customer1803Repository…
|
||||
… <4>
|
||||
2018-08-16 15:03:01.274 DEBUG 45568 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'customer1830Service'
|
||||
2018-08-16 15:03:01.274 DEBUG 45568 --- [ main] ate$LazyRepositoryInjectionPointResolver : Creating lazy injection proxy for example.repo.Customer1830Repository…
|
||||
… <5>
|
||||
2018-08-16 15:03:03.394 INFO 45568 --- [lTaskExecutor-1] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
|
||||
… <6>
|
||||
2018-08-16 15:03:03.717 INFO 45568 --- [ main] example.Application : Started Application in 13.612 seconds (JVM running for 14.212)
|
||||
----
|
||||
<1> Spring triggered application component scanning and finds all services.
|
||||
<2> Spring Data repository scanning is started and finds all repository interfaces.
|
||||
<3> JPA bootstrap is initialized in a background thread.
|
||||
<4> In the meantime, Spring beans are instantiated using lazy injection proxies for repositories to prevent the service instantiation from blocking on the JPA initialization. You should see the logs for the component initialization interleave with JPA initialization log output from the background thread.
|
||||
<5> Spring bean instantiation completed while JPA still bootstraps. The container now waits for the JPA bootstrap to complete
|
||||
<6> The application signals that it is completely bootstrapped. Repositories have not been initialized.
|
||||
|
||||
We gained extra 10 seconds in startup time at the expense of not having the repositories properly initialized yet.
|
||||
They will eventually get initialized once other Spring beans start invoking methods on them.
|
||||
This bears the risk of running into a repository initialization problem too late but it might be worth taking in local development or even testing of narrow parts of your application if you're sufficiently confident that the repositories have been integration tested by other tests.
|
||||
27
jpa/deferred/pom.xml
Normal file
27
jpa/deferred/pom.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.data.examples</groupId>
|
||||
<artifactId>spring-data-jpa-examples</artifactId>
|
||||
<version>2.0.0.BUILD-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>spring-data-jpa-deferred</artifactId>
|
||||
<name>Spring Data JPA - Deferred bootstrap modes</name>
|
||||
|
||||
<properties>
|
||||
<spring-data-releasetrain.version>Lovelace-BUILD-SNAPSHOT</spring-data-releasetrain.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
88
jpa/deferred/src/main/java/example/Application.java
Normal file
88
jpa/deferred/src/main/java/example/Application.java
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package example;
|
||||
|
||||
import example.model.Customer;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.data.repository.config.BootstrapMode;
|
||||
import org.springframework.orm.jpa.JpaVendorAdapter;
|
||||
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||
|
||||
@SpringBootApplication
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Application.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures a {@link LocalContainerEntityManagerFactoryBean} to use background initialization for the {@code lazy}
|
||||
* and {@code deferred} profiles.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Configuration
|
||||
@Profile({ "lazy", "deferred" })
|
||||
static class LazyJpaConfiguration {
|
||||
|
||||
@Bean
|
||||
public LocalContainerEntityManagerFactoryBean entityManagerFactory(JpaVendorAdapter jpaVendorAdapter,
|
||||
DataSource dataSource, Environment environment) {
|
||||
|
||||
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
|
||||
threadPoolTaskExecutor.setDaemon(true);
|
||||
threadPoolTaskExecutor.afterPropertiesSet();
|
||||
|
||||
LocalContainerEntityManagerFactoryBean emf = new LocalContainerEntityManagerFactoryBean();
|
||||
emf.setBootstrapExecutor(threadPoolTaskExecutor);
|
||||
emf.setDataSource(dataSource);
|
||||
emf.setJpaVendorAdapter(jpaVendorAdapter);
|
||||
emf.setPackagesToScan(Customer.class.getPackage().getName());
|
||||
|
||||
return emf;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstraps Spring Data JPA in lazy mode if the {@code lazy} profile is activated.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Profile("lazy")
|
||||
@Configuration
|
||||
@EnableJpaRepositories(bootstrapMode = BootstrapMode.LAZY)
|
||||
static class LazyRepositoryConfiguration {}
|
||||
|
||||
/**
|
||||
* Bootstraps Spring Data JPA in deferred mode if the {@code deferred} profile is activated.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@Profile("deferred")
|
||||
@Configuration
|
||||
@EnableJpaRepositories(bootstrapMode = BootstrapMode.DEFERRED)
|
||||
static class DeferredRepositoryConfiguration {}
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer() {}
|
||||
|
||||
public Customer(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1() {}
|
||||
|
||||
public Customer1(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer10.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer10.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer10 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer10() {}
|
||||
|
||||
public Customer10(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer10[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer100.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer100.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer100 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer100() {}
|
||||
|
||||
public Customer100(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer100[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1000.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1000.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1000 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1000() {}
|
||||
|
||||
public Customer1000(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1000[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1001.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1001.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1001 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1001() {}
|
||||
|
||||
public Customer1001(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1001[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1002.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1002.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1002 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1002() {}
|
||||
|
||||
public Customer1002(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1002[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1003.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1003.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1003 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1003() {}
|
||||
|
||||
public Customer1003(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1003[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1004.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1004.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1004 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1004() {}
|
||||
|
||||
public Customer1004(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1004[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1005.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1005.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1005 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1005() {}
|
||||
|
||||
public Customer1005(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1005[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1006.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1006.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1006 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1006() {}
|
||||
|
||||
public Customer1006(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1006[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1007.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1007.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1007 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1007() {}
|
||||
|
||||
public Customer1007(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1007[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1008.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1008.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1008 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1008() {}
|
||||
|
||||
public Customer1008(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1008[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1009.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1009.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1009 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1009() {}
|
||||
|
||||
public Customer1009(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1009[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer101.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer101.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer101 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer101() {}
|
||||
|
||||
public Customer101(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer101[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1010.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1010.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1010 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1010() {}
|
||||
|
||||
public Customer1010(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1010[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1011.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1011.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1011 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1011() {}
|
||||
|
||||
public Customer1011(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1011[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1012.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1012.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1012 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1012() {}
|
||||
|
||||
public Customer1012(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1012[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1013.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1013.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1013 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1013() {}
|
||||
|
||||
public Customer1013(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1013[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1014.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1014.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1014 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1014() {}
|
||||
|
||||
public Customer1014(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1014[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1015.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1015.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1015 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1015() {}
|
||||
|
||||
public Customer1015(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1015[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1016.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1016.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1016 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1016() {}
|
||||
|
||||
public Customer1016(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1016[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1017.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1017.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1017 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1017() {}
|
||||
|
||||
public Customer1017(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1017[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1018.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1018.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1018 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1018() {}
|
||||
|
||||
public Customer1018(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1018[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1019.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1019.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1019 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1019() {}
|
||||
|
||||
public Customer1019(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1019[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer102.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer102.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer102 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer102() {}
|
||||
|
||||
public Customer102(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer102[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1020.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1020.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1020 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1020() {}
|
||||
|
||||
public Customer1020(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1020[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1021.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1021.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1021 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1021() {}
|
||||
|
||||
public Customer1021(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1021[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1022.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1022.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1022 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1022() {}
|
||||
|
||||
public Customer1022(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1022[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1023.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1023.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1023 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1023() {}
|
||||
|
||||
public Customer1023(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1023[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1024.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1024.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1024 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1024() {}
|
||||
|
||||
public Customer1024(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1024[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1025.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1025.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1025 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1025() {}
|
||||
|
||||
public Customer1025(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1025[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1026.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1026.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1026 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1026() {}
|
||||
|
||||
public Customer1026(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1026[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1027.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1027.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1027 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1027() {}
|
||||
|
||||
public Customer1027(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1027[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1028.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1028.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1028 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1028() {}
|
||||
|
||||
public Customer1028(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1028[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1029.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1029.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1029 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1029() {}
|
||||
|
||||
public Customer1029(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1029[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer103.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer103.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer103 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer103() {}
|
||||
|
||||
public Customer103(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer103[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1030.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1030.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1030 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1030() {}
|
||||
|
||||
public Customer1030(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1030[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1031.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1031.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1031 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1031() {}
|
||||
|
||||
public Customer1031(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1031[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1032.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1032.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1032 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1032() {}
|
||||
|
||||
public Customer1032(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1032[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1033.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1033.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1033 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1033() {}
|
||||
|
||||
public Customer1033(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1033[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1034.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1034.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1034 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1034() {}
|
||||
|
||||
public Customer1034(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1034[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1035.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1035.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1035 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1035() {}
|
||||
|
||||
public Customer1035(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1035[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1036.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1036.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1036 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1036() {}
|
||||
|
||||
public Customer1036(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1036[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1037.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1037.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1037 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1037() {}
|
||||
|
||||
public Customer1037(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1037[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1038.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1038.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1038 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1038() {}
|
||||
|
||||
public Customer1038(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1038[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1039.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1039.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1039 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1039() {}
|
||||
|
||||
public Customer1039(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1039[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer104.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer104.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer104 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer104() {}
|
||||
|
||||
public Customer104(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer104[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1040.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1040.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1040 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1040() {}
|
||||
|
||||
public Customer1040(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1040[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1041.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1041.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1041 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1041() {}
|
||||
|
||||
public Customer1041(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1041[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1042.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1042.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1042 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1042() {}
|
||||
|
||||
public Customer1042(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1042[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1043.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1043.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1043 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1043() {}
|
||||
|
||||
public Customer1043(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1043[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1044.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1044.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1044 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1044() {}
|
||||
|
||||
public Customer1044(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1044[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1045.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1045.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1045 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1045() {}
|
||||
|
||||
public Customer1045(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1045[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1046.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1046.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1046 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1046() {}
|
||||
|
||||
public Customer1046(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1046[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1047.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1047.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1047 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1047() {}
|
||||
|
||||
public Customer1047(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1047[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1048.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1048.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1048 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1048() {}
|
||||
|
||||
public Customer1048(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1048[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1049.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1049.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1049 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1049() {}
|
||||
|
||||
public Customer1049(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1049[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer105.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer105.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer105 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer105() {}
|
||||
|
||||
public Customer105(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer105[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1050.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1050.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1050 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1050() {}
|
||||
|
||||
public Customer1050(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1050[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1051.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1051.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1051 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1051() {}
|
||||
|
||||
public Customer1051(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1051[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1052.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1052.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1052 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1052() {}
|
||||
|
||||
public Customer1052(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1052[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1053.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1053.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1053 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1053() {}
|
||||
|
||||
public Customer1053(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1053[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1054.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1054.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1054 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1054() {}
|
||||
|
||||
public Customer1054(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1054[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1055.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1055.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1055 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1055() {}
|
||||
|
||||
public Customer1055(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1055[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1056.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1056.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1056 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1056() {}
|
||||
|
||||
public Customer1056(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1056[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1057.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1057.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1057 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1057() {}
|
||||
|
||||
public Customer1057(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1057[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1058.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1058.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1058 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1058() {}
|
||||
|
||||
public Customer1058(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1058[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1059.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1059.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1059 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1059() {}
|
||||
|
||||
public Customer1059(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1059[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer106.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer106.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer106 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer106() {}
|
||||
|
||||
public Customer106(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer106[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1060.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1060.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1060 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1060() {}
|
||||
|
||||
public Customer1060(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1060[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1061.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1061.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1061 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1061() {}
|
||||
|
||||
public Customer1061(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1061[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1062.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1062.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1062 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1062() {}
|
||||
|
||||
public Customer1062(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1062[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1063.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1063.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1063 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1063() {}
|
||||
|
||||
public Customer1063(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1063[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1064.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1064.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1064 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1064() {}
|
||||
|
||||
public Customer1064(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1064[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1065.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1065.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1065 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1065() {}
|
||||
|
||||
public Customer1065(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1065[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1066.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1066.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1066 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1066() {}
|
||||
|
||||
public Customer1066(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1066[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1067.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1067.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1067 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1067() {}
|
||||
|
||||
public Customer1067(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1067[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1068.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1068.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1068 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1068() {}
|
||||
|
||||
public Customer1068(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1068[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1069.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1069.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1069 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1069() {}
|
||||
|
||||
public Customer1069(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1069[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer107.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer107.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer107 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer107() {}
|
||||
|
||||
public Customer107(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer107[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1070.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1070.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1070 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1070() {}
|
||||
|
||||
public Customer1070(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1070[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1071.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1071.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1071 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1071() {}
|
||||
|
||||
public Customer1071(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1071[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1072.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1072.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1072 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1072() {}
|
||||
|
||||
public Customer1072(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1072[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1073.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1073.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1073 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1073() {}
|
||||
|
||||
public Customer1073(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1073[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1074.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1074.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1074 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1074() {}
|
||||
|
||||
public Customer1074(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1074[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1075.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1075.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1075 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1075() {}
|
||||
|
||||
public Customer1075(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1075[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1076.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1076.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1076 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1076() {}
|
||||
|
||||
public Customer1076(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1076[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1077.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1077.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1077 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1077() {}
|
||||
|
||||
public Customer1077(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1077[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1078.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1078.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1078 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1078() {}
|
||||
|
||||
public Customer1078(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1078[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1079.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1079.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1079 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1079() {}
|
||||
|
||||
public Customer1079(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1079[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer108.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer108.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer108 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer108() {}
|
||||
|
||||
public Customer108(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer108[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1080.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1080.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1080 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1080() {}
|
||||
|
||||
public Customer1080(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1080[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1081.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1081.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1081 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1081() {}
|
||||
|
||||
public Customer1081(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1081[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1082.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1082.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1082 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1082() {}
|
||||
|
||||
public Customer1082(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1082[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1083.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1083.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1083 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1083() {}
|
||||
|
||||
public Customer1083(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1083[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
27
jpa/deferred/src/main/java/example/model/Customer1084.java
Normal file
27
jpa/deferred/src/main/java/example/model/Customer1084.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package example.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@Entity
|
||||
public class Customer1084 {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
|
||||
protected Customer1084() {}
|
||||
|
||||
public Customer1084(String firstName, String lastName) {
|
||||
this.firstName = firstName;
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer1084[id=%d, firstName='%s', lastName='%s']", id, firstName, lastName);
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user