persist « Test « JPA Q&A





1. How to properly test Hibernate length restriction?    stackoverflow.com

I have a POJO mapped with Hibernate for persistence. In my mapping I specify the following:

<class name="ExpertiseArea">
    <id name="id" type="string">
        <generator ...

2. Using a different persistence unit for testing    stackoverflow.com

I have several stateless session beans I have created unit tests for. When I run these tests in the embedded GlassFish container, the default persistence unit for my project is used, ...