| Constructor and Description |
|---|
SessionFactory(Configuration configuration,
String... packages)
Constructs a new
SessionFactory by initialising the object-graph mapping meta-data from the given list of domain
object packages, and also sets the configuration to be used. |
SessionFactory(String... packages)
Constructs a new
SessionFactory by initialising the object-graph mapping meta-data from the given list of domain
object packages. |
| Modifier and Type | Method and Description |
|---|---|
MetaData |
metaData()
Retrieves the meta-data that was built up when this
SessionFactory was constructed. |
Session |
openSession()
Opens a new Neo4j mapping
Session using the Driver specified in the OGM configuration
The driver should be configured to connect to the database using the appropriate
DriverConfig |
public SessionFactory(String... packages)
SessionFactory by initialising the object-graph mapping meta-data from the given list of domain
object packages.
The package names passed to this constructor should not contain wildcards or trailing full stops, for example, "org.springframework.data.neo4j.example.domain" would be fine. The default behaviour is for sub-packages to be scanned and you can also specify fully-qualified class names if you want to cherry pick particular classes.
packages - The packages to scan for domain objectspublic SessionFactory(Configuration configuration, String... packages)
SessionFactory by initialising the object-graph mapping meta-data from the given list of domain
object packages, and also sets the configuration to be used.
The package names passed to this constructor should not contain wildcards or trailing full stops, for example, "org.springframework.data.neo4j.example.domain" would be fine. The default behaviour is for sub-packages to be scanned and you can also specify fully-qualified class names if you want to cherry pick particular classes.
packages - The packages to scan for domain objectspublic MetaData metaData()
SessionFactory was constructed.MetaDataCopyright © 2016 Neo Technology, Inc.. All rights reserved.