sapience-lookup-hibernate

Description

...tba...

Using this component

When you download this component you can use it with the default settings. This includes the SQLite database. The SQLite database consists only of one file, called 1.db and is located in the main directory of the project where you use the Lookup. To look at the database and its datasets you can use  sqliteadmin.
If you want to use this component you have to take the the LookupImpl class. This class implements the Lookup interface.
Test this component with the help of the JUnit Tests located at sapience.lookup.hibernate.tests.reference to be sure that everything works fine.

Extending this component

If you want to use another database you are able to extend the Lookup. This needs the following changes:

  • Create a new properties file similar to sqlite.properties in sapience.lookup.hibernate.controller. You have to consider that the createTable and tableExist requests are not supported by HQL.
  • Change the DbProperties class in the same package to link to your new properties file.
  • Create a new hibernate config file similar to sqlite.cfg.xml in the META-INF directory. That will need a new connection driver which has to be added in the pom.xml.
  • Change the HibernateUtil class in the sapience.lookup.hibernate.utilities package to link to the new config file.

Download

Use Maven to download the whole sapience.lookup.hibernate module

<dependency>
 <groupId>sapience</groupId> 
 <artifactId>sapience-lookup-hibernate</artifactId>
 <version>${sapience.version}</version>
</dependency>

Open Issues

  • comment whole code
  • Tests with different databases

Status

...under progress...

Staff

  • Henry Michels (Leader)

Active Tickets

No results