com.wideplay.warp.jpa
Annotation Type JpaUnit


@Retention(value=RUNTIME)
public @interface JpaUnit

Created with IntelliJ IDEA. On: 3/06/2007

A guice binding annotation you should use to tell warp-persist the name of the JPA persistence unit you wish to use. Bind a string with the name to this annotation. For instance, if the name of your persistence unit is "myDb" you would add the following in one of your guice modules:

bindConstant().annotatedWith(JpaUnit.class).to("myDb");

You must bind a string to this annotation if using JPA. And it must match a jpa unit named in your JPA persistence.xml.

Since:
1.0
Author:
Dhanji R. Prasanna (dhanji@gmail.com)