Skip to content
This repository has been archived by the owner on Feb 22, 2019. It is now read-only.
Pavel Vlasov edited this page Oct 9, 2014 · 1 revision

H2

This bundle contains H2RepositoryProvider component. It supports the following properties:

  • .h2.url - Database URL. If not specified defaults to component name in the db sub-directory of defining bundle's data directory.
  • .audits - Enables audits.
  • .branches - Enables branches.
  • .repository. - Prefix for repository properties, e.g. value of .repository.myProperty will be passed to the repository in myProperty property.
  • .repositoryName - Repository name, defaults to component name.

Sample component definition

<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="false" name="credit_cards_repository">
   <implementation class="org.nasdanika.cdo.h2.H2RepositoryProvider"/>
   <service>
      <provide interface="org.nasdanika.cdo.RepositoryProvider"/>
   </service>
   <!-- <property name=".h2.url" type="String" value="_data/credit_cards"/> -->
   <property name=".repositoryName" type="String" value="credit_cards"/>
</scr:component>
Clone this wiki locally