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.
Constructor and Description |
---|
MappedSchema(java.lang.Class<?> schemaFamily,
int version,
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.Iterable<java.lang.Class> |
getMappedTypes()
The JPA entity classes that the ORM layer needs to be configure with for this schema.
|
java.lang.String |
getMigrationResource()
Optional classpath resource containing the database changes for the mappedTypes
|
java.lang.String |
getName() |
int |
getVersion()
The version number of this instance within the family.
|
int |
hashCode() |
java.lang.String |
toString() |
public MappedSchema(java.lang.Class<?> schemaFamily, int version, 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.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.public java.lang.String getName()
public java.lang.String getMigrationResource()
Optional classpath resource containing the database changes for the mappedTypes
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public int hashCode()
public int getVersion()
The version number of this instance within the family.
public java.lang.Iterable<java.lang.Class> getMappedTypes()
The JPA entity classes that the ORM layer needs to be configure with for this schema.