Package net.corda.core.schemas
Class MappedSchema
-
- All Implemented Interfaces:
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.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
name
private final String
migrationResource
private final Integer
version
private final Iterable<Class<?>>
mappedTypes
-
Constructor Summary
Constructors Constructor Description MappedSchema(Class<?> schemaFamily, Integer version, Iterable<Class<?>> mappedTypes)
-
Method Summary
Modifier and Type Method Description final String
getName()
String
getMigrationResource()
Optional classpath resource containing the database changes for the mappedTypes final Integer
getVersion()
final Iterable<Class<?>>
getMappedTypes()
String
toString()
Boolean
equals(Object other)
Integer
hashCode()
-
-
Constructor Detail
-
MappedSchema
MappedSchema(Class<?> schemaFamily, Integer version, Iterable<Class<?>> mappedTypes)
- Parameters:
schemaFamily
- A class to fully qualify the name of a schema family (i.e.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.
-
-
Method Detail
-
getMigrationResource
String getMigrationResource()
Optional classpath resource containing the database changes for the mappedTypes
-
getVersion
final Integer getVersion()
-
getMappedTypes
final Iterable<Class<?>> getMappedTypes()
-
-
-
-