Ich erstelle ein frisches neues Projekt mit Spring Boot 1.5, mit einem abhängigen Entity-Modul (Erstellt im Jahr 2012).Wie Spring-Boot mit älterer Version von Ruhezustand ausführen
Entity-Modul verwendet ältere Version von Hibernate (3.3.2), kann ich nicht Entity-Modul ändern.
Entity-Modul folgende Anmerkung wird verwendet, die mit Hibernate5 (durch Feder Boot-1.5 kommt default) entfernt wird
CollectionOfElements
MapKey
@ForeignKey
@IndexColumn
ich weiß, dass wir andere Version von Gläsern geben kann, kann im Frühjahr Boot verwendet werden, habe ich versucht, durch zwingende, aber es nicht
Hilfe oder Anleitung wird sehr appriciated, Thanks A Lot
<!-- HIBERNATE OLDER VERSION COMPATIBILITY -->
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-annotations -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>3.1.0.GA</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate -->
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.3.2.GA</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.3.2.GA</version>
</dependency>
Sie sollte dies lesen: https://spring.io/blog/2016/04/13/overriding-dependency-versions-with-spring-boot –