Sun Java System Application Server Platform Edition 9 Release Notes

Cannot persist an entity with relationship field set to a java.util.HashSet.

See https://glassfish.dev.java.net/issues/show_bug.cgi?id=643 for more information.

Solution

Use java.util.ArrayList as the initial value.