I am trying to persist a series of very simple entities using OpenJPA 1.1. I am able to persist up to 500 instances in sequence, however trying to add more then 600 entities using the example below fails with a StackOverflowError as shown in the stacktrace below. I have tested with with version 1.0, 1.0.1, 1.0.2, 1.1.0 as well as 1.1.0-SnapShot and it fails in all cases.
Below are the stacktace, the entity and the test case. The stack trace repeat a couple of more times which is not shows here.