1) Installing Gradle,gradle is a maven-like build tool
2) Install the gitclient.
Clone source code from URL Https://github.com/hibernate/hibernate-orm
3) command line into the local Hibernate-orm folder, run the gradlew.bat assemble command, will be built.
4) Run the Gradlew.bat Eclipse command to generate the Eclipse project file.
Solutions to problems that occur when compiling
1.java.lang.outofmemoryerror:java Heap Space
Enter the gradlew.bat file in the Hibernate-orm folder to adjust the maximum allocated memory size for the heap.
@rem the ADD default JVM options here. You can also with java_opts and gradle_opts to pass the JVM options to this script.
Set default_jvm_opts= "-xmx1024m"
2.CORE\SRC\MAIN\ORG\HIBERNATE\ANNOTATIONS\SQLDELETE.JAVA:37: Error: Encoding GBK non-mapped characters
Need to go to the Control Panel, change the regional language inside-admin-change the system locale to English (United Kingdom)
3. Package Org.hibernate.metamodel.source does not exist. Move the Hibernate-orm\hibernate-entitymanager\src\test\java\org\hibernate\jpa\test\criteria under the path
\paths under the Singularattributejointest.java file to be deleted.
4. After you import project into Eclipse, a red exclamation mark appears on the project,
The solution is: menu bar window--"Show view--" problems, can see the problem
DescriptionResourcePath locationType
A cycle is detected in the build path of project ' Hibernate-c3p0 '.the cycle consists of projects {hibernate-testing, Hibernate-core, HIBERNATE-C3P0, Hibernate-ehcache, Hibernate-enhance-maven-plugin, Hibernate-entitymanager, Hibernate-envers, Hibernate-gradle-plugin, HIBERNATE-HIKARICP, Hibernate-infinispan, Hibernate-jpamodelgen, Hibernate-osgi, Hibernate-proxool} hibernate-c3p0 Build Path build path problem.
Solution: Building path problems, Building, preferences-> Java, Compiler, Window, Circular Dependen Cies, change error to Warning
is to change the loop dependency from error to warning.
Compiling hibernate source code