Spring ORM & Hibernate
- Spring ORM - Create Project
- Spring ORM - Maven Hibernate
- Spring ORM - Persistence Hibernate
- Spring ORM - Update Project
- Spring ORM - Run & Test Hibernate
Spring ORM & EclipseLink
- Spring ORM - Maven EclipseLink
- Spring ORM - Persistence EclipseLink
- Spring ORM - Update Project EclipseLink
- Spring ORM - Run & Test EclipseLink
Spring ORM & Useful Resources
Spring ORM - Test EclipseLink
Now in eclipse, right click on the MainApp.java, select Run As context menu, and select Java Application. Check the console logs in the eclipse. You can see the below logs −
[EL Fine]: server: 2025.10.05 20:40:59.850--Thread(Thread[#3,main,5,main])--Configured server platform: org.eclipse.persistence.platform.server.NoServerPlatform [EL Config]: metadata: 2025.10.05 20:40:59.978--ServerSession(743778731)--Thread(Thread[#3,main,5,main])--The access type for the persistent class [class com.tutorialspoint.jpa.entity.Employee] is set to [FIELD]. [EL Config]: metadata: 2025.10.05 20:40:59.990--ServerSession(743778731)--Thread(Thread[#3,main,5,main])--The alias name for the entity class [class com.tutorialspoint.jpa.entity.Employee] is being defaulted to: Employee. [EL Config]: metadata: 2025.10.05 20:40:59.999--ServerSession(743778731)--Thread(Thread[#3,main,5,main])--The column name for element [id] is being defaulted to: ID. Oct 05, 2025 8:41:00 PM org.springframework.orm.jpa.LocalEntityManagerFactoryBean buildNativeEntityManagerFactory INFO: Initialized JPA EntityManagerFactory for persistence unit 'EclipseLink_JPA' [EL Info]: 2025.10.05 20:41:00.239--ServerSession(743778731)--Thread(Thread[#3,main,5,main])--EclipseLink, version: Eclipse Persistence Services - 5.0.0-B10.v202508250733-7403fb4d27505a202052781d38a7d5324ff916bd [EL Fine]: connection: 2025.10.05 20:41:00.838--Thread(Thread[#3,main,5,main])--Detected database platform: org.eclipse.persistence.platform.database.MySQLPlatform [EL Fine]: connection: 2025.10.05 20:41:00.850--ServerSession(743778731)--Connection(1270383967)--Thread(Thread[#3,main,5,main])--connecting(DatabaseLogin( platform=>MySQLPlatform user name=> "guest" datasource URL=> "jdbc:mysql://localhost:3306/tutorialspoint" )) [EL Config]: connection: 2025.10.05 20:41:00.909--ServerSession(743778731)--Connection(65982709)--Thread(Thread[#3,main,5,main])--Connected: jdbc:mysql://localhost:3306/tutorialspoint User: guest@localhost Database: MySQL Version: 8.0.43 Driver: MySQL Connector/J Version: mysql-connector-j-8.0.33 (Revision: 7d6b0800528b6b25c68b52dc10d6c1c8429c100c) [EL Fine]: connection: 2025.10.05 20:41:00.986--ServerSession(743778731)--Thread(Thread[#3,main,5,main])--/file:/C:/Users/mahes/eclipse-workspace/springorm/target/classes/_EclipseLink_JPA login successful [EL Fine]: 2025.10.05 20:41:01.005--Thread(Thread[#3,main,5,main])--JsonPlatformProvider class org.eclipse.persistence.pgsql.PostgreSQLJsonPlatformProvider was not found [EL Fine]: 2025.10.05 20:41:01.006--Thread(Thread[#3,main,5,main])--JsonPlatformProvider class org.eclipse.persistence.platform.database.oracle.json.OracleJsonPlatformProvider was not found [EL Fine]: 2025.10.05 20:41:01.006--Thread(Thread[#3,main,5,main])--JsonPlatformProvider class org.eclipse.persistence.json.DefaultJsonPlatformProvider was not found [EL Fine]: sql: 2025.10.05 20:41:01.041--ServerSession(743778731)--Connection(65982709)--Thread(Thread[#3,main,5,main])--CREATE TABLE Employees (ID INTEGER AUTO_INCREMENT NOT NULL, DESIGNATION VARCHAR(255), NAME VARCHAR(255), SALARY DOUBLE, PRIMARY KEY (ID)) [EL Fine]: sql: 2025.10.05 20:41:01.191--ClientSession(827248723)--Connection(65982709)--Thread(Thread[#3,main,5,main])--INSERT INTO Employees (DESIGNATION, NAME, SALARY) VALUES (?, ?, ?) bind => [Technical Manager, Julie, 10000.0] [EL Fine]: sql: 2025.10.05 20:41:01.214--ClientSession(1866403758)--Connection(65982709)--Thread(Thread[#3,main,5,main])--INSERT INTO Employees (DESIGNATION, NAME, SALARY) VALUES (?, ?, ?) bind => [Senior Manager, Robert, 20000.0] [EL Fine]: sql: 2025.10.05 20:41:01.224--ClientSession(1948835427)--Connection(65982709)--Thread(Thread[#3,main,5,main])--INSERT INTO Employees (DESIGNATION, NAME, SALARY) VALUES (?, ?, ?) bind => [Software Engineer, Anil, 5000.0] [EL Fine]: sql: 2025.10.05 20:41:01.253--ServerSession(743778731)--Connection(65982709)--Thread(Thread[#3,main,5,main])--SELECT ID, DESIGNATION, NAME, SALARY FROM Employees Id : 1 Name : Julie Salary = 10000.0 Designation = Technical Manager Id : 2 Name : Robert Salary = 20000.0 Designation = Senior Manager Id : 3 Name : Anil Salary = 5000.0 Designation = Software Engineer Oct 05, 2025 8:41:01 PM org.springframework.orm.jpa.LocalEntityManagerFactoryBean destroy INFO: Closing JPA EntityManagerFactory for persistence unit 'EclipseLink_JPA' [EL Fine]: connection: 2025.10.05 20:41:01.262--ServerSession(743778731)--Connection(65982709)--Thread(Thread[#3,main,5,main])--disconnect [EL Fine]: connection: 2025.10.05 20:41:01.263--ServerSession(743778731)--Thread(Thread[#3,main,5,main])--/file:/C:/Users/mahes/eclipse-workspace/springorm/target/classes/_EclipseLink_JPA logout successful [EL Fine]: connection: 2025.10.05 20:41:01.264--ServerSession(743778731)--Connection(1270383967)--Thread(Thread[#3,main,5,main])--disconnect
Here project is built and run using spring configurations. A table Employee is created and have three records. You can verify the same using MySQL console.
Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 41 Server version: 8.0.23 MySQL Community Server - GPL Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use tutorialspoint; Database changed mysql> select * from employees; +----+-------------------+--------+--------+ | id | DESIGNATION | NAME | SALARY | +----+-------------------+--------+--------+ | 1 | Technical Manager | Julie | 10000 | | 2 | Senior Manager | Robert | 20000 | | 3 | Software Engineer | Anil | 5000 | +----+-------------------+--------+--------+ 3 rows in set (0.00 sec) mysql>
Advertisements