-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into fix-hibernate-6.2.x
# Conflicts: # .github/workflows/test.yml # pom.xml # src/main/java/liquibase/ext/hibernate/snapshot/TableSnapshotGenerator.java
- Loading branch information
Showing
13 changed files
with
125 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,19 @@ on: | |
- reopened | ||
- synchronize | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
build: | ||
# This extension can not execute hibernete tests on Java 8/11. This needs to be fixed and then uncomment the following 2 lines and remove the build and unit-test logic from here | ||
#uses: liquibase/build-logic/.github/workflows/[email protected].4 | ||
#uses: liquibase/build-logic/.github/workflows/[email protected].5 | ||
#secrets: inherit | ||
name: Build & Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
|
@@ -59,17 +63,17 @@ jobs: | |
java: [ 17, 19 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build Cache | ||
uses: actions/cache@v3.0.5 | ||
uses: actions/cache@v3.3.2 | ||
with: | ||
key: build-${{ github.run_number }}-${{ github.run_attempt }} | ||
path: | | ||
|
@@ -81,7 +85,7 @@ jobs: | |
|
||
- name: Archive Test Results | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-reports-jdk-${{ matrix.java }} | ||
path: | | ||
|
@@ -99,10 +103,10 @@ jobs: | |
hibernate: [ "6.0.2.Final", "6.1.7.Final" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
|
@@ -116,13 +120,14 @@ jobs: | |
|
||
- name: Archive Test Results | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-reports-hibernate-${{ matrix.hibernate }} | ||
path: | | ||
**/target/surefire-reports | ||
**/target/jacoco.exec | ||
dependabot: | ||
uses: liquibase/build-logic/.github/workflows/dependabot-automerge.yml@main | ||
needs: hibernate-test | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.example.ejb3.auction; | ||
|
||
import jakarta.persistence.*; | ||
|
||
@Entity | ||
@SecondaryTable(name = "second_table", pkJoinColumns = @PrimaryKeyJoinColumn(name = "first_table_id")) | ||
public class FirstTable { | ||
@Id | ||
private Long id; | ||
|
||
@Column(name = "name") | ||
private String name; | ||
|
||
@Embedded | ||
private SecondTable secondTable; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public SecondTable getSecondTable() { | ||
return secondTable; | ||
} | ||
|
||
public void setSecondTable(SecondTable secondTable) { | ||
this.secondTable = secondTable; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.example.ejb3.auction; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Embeddable; | ||
|
||
@Embeddable | ||
public class SecondTable { | ||
|
||
@Column(table = "second_table") | ||
private String secondName; | ||
|
||
public String getSecondName() { | ||
return secondName; | ||
} | ||
|
||
public void setSecondName(String secondName) { | ||
this.secondName = secondName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters