public class MappedSchema
A database schema that might be configured for this node. As well as a name and version for identifying the schema, also list the classes that may be used in the generated object graph in order to configure the ORM tool.
public MappedSchema(@NotNull java.lang.Class<?> schemaFamily, int version, @NotNull java.lang.Iterable<? extends java.lang.Class<?>> mappedTypes)
A database schema that might be configured for this node. As well as a name and version for identifying the schema, also list the classes that may be used in the generated object graph in order to configure the ORM tool.
schemaFamily
- A class to fully qualify the name of a schema family (i.e. excludes version)version
- The version number of this instance within the family.mappedTypes
- The JPA entity classes that the ORM layer needs to be configure with for this schema.@NotNull public java.lang.String getName()
@Nullable public java.lang.String getMigrationResource()
Optional classpath resource containing the database changes for the mappedTypes
@NotNull public java.lang.String toString()
public boolean equals(@Nullable java.lang.Object other)
public int hashCode()
public int getVersion()
The version number of this instance within the family.
@NotNull public java.lang.Iterable<java.lang.Class> getMappedTypes()
The JPA entity classes that the ORM layer needs to be configure with for this schema.