Skip to content

Commit

Permalink
#46 - Support <entity/> overrides
Browse files Browse the repository at this point in the history
#47 - Support dynamic <entity/> and <embeddable/> mappings
  • Loading branch information
sebersole committed Oct 23, 2023
1 parent efe4dea commit e48bc60
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion hibernate-models-orm/hibernate-models-orm.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
apply from: rootProject.file( "gradle/java-module.gradle" )

dependencies {
implementation platform( libs.hibernatePlatform )

implementation project( ":hibernate-models-common" )
implementation project( ":hibernate-models-source" )

implementation platform( libs.hibernatePlatform )
implementation libs.hibernateCore
implementation libs.jandex
implementation libs.byteBuddy
Expand Down
1 change: 1 addition & 0 deletions hibernate-models-source/hibernate-models-source.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies {
annotationProcessor libs.logging
annotationProcessor libs.loggingAnnotations

testImplementation platform( libs.hibernatePlatform )
testImplementation project( ":hibernate-models-testing" )
testImplementation project( ":hibernate-models-orm" )
testImplementation testLibs.jpa
Expand Down
1 change: 1 addition & 0 deletions hibernate-models-testing/hibernate-models-testing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
implementation project( ":hibernate-models-orm" )
implementation libs.jandex

testImplementation platform( libs.hibernatePlatform )
testImplementation testLibs.jpa
testImplementation libs.hibernateCore
testRuntimeOnly testLibs.log4j
Expand Down
16 changes: 10 additions & 6 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ rootProject.name = 'hibernate-models2'
dependencyResolutionManagement {
repositories {
mavenCentral()
mavenLocal()
maven {
// temporary - OSSRH snapshot repo for ORM 7.0 snapshot
url "https://oss.sonatype.org/content/repositories/snapshots/"
mavenContent {
snapshotsOnly()
}
}
}

versionCatalogs {
Expand All @@ -20,9 +26,9 @@ dependencyResolutionManagement {
def classmateVersion = version "classmate", "1.5.1"
library( "classmate", "com.fasterxml", "classmate" ).versionRef( classmateVersion )

def hibernateVersion = version "hibernateOrm", "7.0.0-XSD"
library( "hibernateCore", "org.hibernate.orm", "hibernate-core" ).versionRef( hibernateVersion )
library( "hibernateTesting", "org.hibernate.orm", "hibernate-testing" ).versionRef( hibernateVersion )
def hibernateVersion = version "hibernateOrm", "7.0.0-SNAPSHOT"
// withoutVersion assuming that the platform is applied
library( "hibernateCore", "org.hibernate.orm", "hibernate-core" ).withoutVersion()
library( "hibernatePlatform", "org.hibernate.orm", "hibernate-platform" ).versionRef( hibernateVersion )

def jacksonVersion = version "jackson", "2.14.1"
Expand Down Expand Up @@ -63,8 +69,6 @@ dependencyResolutionManagement {
def assertjVersion = version "assertj", "3.22.0"
library( "assertjCore", "org.assertj", "assertj-core" ).versionRef( assertjVersion )

library( "hibernateTesting", "org.hibernate.orm", "hibernate-testing" ).withoutVersion()

def jpaVersion = version "jpa", "3.1.0"
library( "jpa", "jakarta.persistence", "jakarta.persistence-api" ).versionRef( jpaVersion )

Expand Down

0 comments on commit e48bc60

Please sign in to comment.