Spring Boot ORM - Test EclipseLink



Now in STS, right click on the springbootorm project, select Run As -> Spring Boot App context or select SpringbootormApplication class and select Run As -> Spring Boot App

Run As Spring Boot App

Output

You will similar result in STS Console.


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.5.6)

2025-10-01T12:38:17.680+05:30  INFO 17584 --- [springbootorm] [  restartedMain] c.t.s.SpringbootormApplication           : Starting SpringbootormApplication using Java 21.0.6 with PID 17584 (D:\Projects\springbootorm\target\classes started by mahes in D:\Projects\springbootorm)
2025-10-01T12:38:17.684+05:30  INFO 17584 --- [springbootorm] [  restartedMain] c.t.s.SpringbootormApplication           : No active profile set, falling back to 1 default profile: "default"
2025-10-01T12:38:17.748+05:30  INFO 17584 --- [springbootorm] [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2025-10-01T12:38:17.748+05:30  INFO 17584 --- [springbootorm] [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2025-10-01T12:38:18.732+05:30  INFO 17584 --- [springbootorm] [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2025-10-01T12:38:18.808+05:30  INFO 17584 --- [springbootorm] [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 68 ms. Found 1 JPA repository interface.
2025-10-01T12:38:19.546+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port 8080 (http)
2025-10-01T12:38:19.567+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2025-10-01T12:38:19.568+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.46]
2025-10-01T12:38:19.638+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2025-10-01T12:38:19.640+05:30  INFO 17584 --- [springbootorm] [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1888 ms
2025-10-01T12:38:20.197+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2025-10-01T12:38:20.204+05:30  INFO 17584 --- [springbootorm] [  restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
[EL Info]: 2025-10-01 12:38:20.287--ServerSession(1787443485)--EclipseLink, version: Eclipse Persistence Services - 4.0.4.v202407190748-059428cdd2583c46f1f3e50d235854840a6fa9a7
2025-10-01T12:38:21.187+05:30  WARN 17584 --- [springbootorm] [  restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2025-10-01T12:38:21.818+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2025-10-01T12:38:21.866+05:30  INFO 17584 --- [springbootorm] [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port 8080 (http) with context path '/'
2025-10-01T12:38:21.877+05:30  INFO 17584 --- [springbootorm] [  restartedMain] c.t.s.SpringbootormApplication           : Started SpringbootormApplication in 4.698 seconds (process running for 5.22)

Get all Employees

Now make a GET Request to get all records.

Set the following parameters in POSTMAN.

  • HTTP Method − GET

  • URL − http://localhost:8080/emp/employees

Click the send button and verify the response.

[{  
   "id": 1,  
   "age": 35,  
   "name": "Julie",  
   "email": "julie@gmail.com"  
}]   
Get all Employees

You will see similar updates in STS Console as well.

2025-10-01T12:39:02.648+05:30  INFO 17584 --- [springbootorm] [nio-8080-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2025-10-01T12:39:02.650+05:30  INFO 17584 --- [springbootorm] [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2025-10-01T12:39:02.652+05:30  INFO 17584 --- [springbootorm] [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet        : Completed initialization in 2 ms
[EL Fine]: sql: 2025-10-01 12:39:03.017--ServerSession(1787443485)--Connection(967713301)--SELECT ID, AGE, EMAIL, NAME FROM EMPLOYEE
Advertisements