@entity dependency maven code example

Example: @entity dependency maven


    4.0.0
    com.geekcap.javaworld
    jpa-example
    jar
    1.0-SNAPSHOT
    jpa-example
    http://maven.apache.org
    
        1.8
        5.3.6.Final
    
    
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                2.0.2
                
                    ${java.version}
                    ${java.version}
                
            
            
                org.apache.maven.plugins
                maven-jar-plugin
                
                    
                        
                            true
                            lib/
                            com.geekcap.javaworld.jpa.JpaExample
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-dependency-plugin
                
                    
                        copy
                        install
                        
                            copy-dependencies
                        
                        
                            ${project.build.directory}/lib
                        
                    
                
            
        
    
    
        
            org.hibernate
            hibernate-core
            ${hibernate.version}
        
        
            org.hibernate
            hibernate-entitymanager
            ${hibernate.version}
        
        
            org.hibernate.javax.persistence
            hibernate-jpa-2.1-api
            1.0.2.Final
        
        
            com.h2database
            h2
            1.4.197
            runtime
        
    

Tags:

Misc Example