I'm using ObjectDB 2.5.6_02 and running into a bug with a JDO @Unique constraint. I'm using JPA in general. I have an EJB persisting two entities with @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) declared on the EJB method. The two entities have the same value for the field with the @Unique constraint.
The unique constraint causes an exception as expected, but I would expect ObjectDB to roll back the transaction and not persist anything. However, it is persisting both entities.