Kauri database resources

First thoughts - own expectations

Goal

Provide a JpaRestlet that  checks and mounts jpa-resources:

  • use mapping file:  "/person/"  <-> org.domain.jpa.FooJPA(.class)
  • scan classpath for JPA annotated classes (jaxrs path annotation ?)

Configuration

Allow for easy configuration of connection-url, username, password, ...
Decide which format to use for configuration and where the configuration file should be placed.

ID-generation

IDgeneration can get tricky when automatic creation of new objects is exposed through url's. It will probably be useful to provide an IdGeneratorRestlet.

Groovy

We would like to support database resources written in groovy !

Validation

The annotations that are related to validation should be inspected by a validator, that then can be asked to provide a js-representation to use on the client side (possibly with remote validation invocation for complex validation rules).

Transaction management

Provide easy transaction management through a TXManagementRestlet .

Initial research

Restlet

The restlet community is certainly interested in the subject of database resources. They have created a documentation page with their own requirements, based on what is mentioned in RFE #6 . It seems however that work on this subject has not yet begun.

Restlet-JPA

An australian company has created a project named restlet-jpa, which aims to be "a Restlet extension for automatically exposing JPA entities" and is licensed under CDDL. This comes from the same folks that created xtc (XML Template Compiler), which we reviewed very briefly when we were looking for a template engine.

The current implementation of restlet-jpa seems to be very basic. Also by hosting and supporting this extension on their own domain instead of it being part of the restlet extensions , the project doens't benefit from the restlet community base. It might  however still be interesting to have a look at it.

Agimatec-validation

This is an early implementation of JSR 303 (Bean Validation), a specification of the Java API for JavaBean validation in Java EE and Java SE.

Other inspiration

Comments (0)