Hibernate + Java 9 + javax.transaction.SystemException

前端 未结 2 1811
天命终不由人
天命终不由人 2021-01-03 03:33

I kind of have the same problem as: Hibernate, Java 9 and SystemException

I can follow the steps like this

    
        

        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-03 03:59

    Update 2019/08/05

    Libraries have been updated to allow for better support. Please use the same module-info definitions as

    opens xx.xx.xx.entities to org.hibernate.orm.core;
    
    requires java.transaction;
    requires java.xml.bind;
    requires java.sql;
    requires java.activation;
    requires java.persistence;
    

    Maven has been simplified greatly

    
                            maven-compiler-plugin
                            
                                
                                    
                                        org.hibernate
                                        hibernate-jpamodelgen
                                        ${maven.hibernate.version}
                                    
                                    
                                        org.projectlombok
                                        lombok
                                        ${lombok.version}
                                    
                                    
                                        javax.xml.bind
                                        jaxb-api
                                        2.3.0
                                    
                                    
                                        javax.annotation
                                        javax.annotation-api
                                        1.3.1
                                    
                                    
                                        org.mapstruct
                                        mapstruct-processor
                                        ${mapstruct.version}
                                    
                                
                            
    
                        
    

提交回复
热议问题