Skip to content

Commit

Permalink
Ensure a stable processing order of the ORM entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Mar 12, 2021
1 parent e3db98c commit f719fa1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.quarkus.hibernate.orm.deployment;

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

import javax.persistence.Entity;

Expand All @@ -15,9 +15,9 @@
*/
public final class JpaEntitiesBuildItem extends SimpleBuildItem {

private final Set<String> allModelPackageNames = new HashSet<String>();
private final Set<String> entityClassNames = new HashSet<String>();
private final Set<String> allModelClassNames = new HashSet<String>();
private final Set<String> allModelPackageNames = new TreeSet<>();
private final Set<String> entityClassNames = new TreeSet<>();
private final Set<String> allModelClassNames = new TreeSet<>();

public void addModelPackage(String packageName) {
allModelPackageNames.add(packageName);
Expand Down

0 comments on commit f719fa1

Please sign in to comment.