This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
-create new web project with some entity class(es) -open persistence.xml in the editor => file contains only required/mandatory elements and transaction-type is set to "JTA" -create new REST service from some entity class => non-mandatory <class> element is added to persistence.xml <class> elements should be added to persistence.xml only if transaction-type attribute is set to "RESOURCE_LOCAL"
Perhaps we need to close this with some bug against TopLink implementation.
The entities were added to the persistence.xml because that was the only way to get things to work but we never investigated the reason. This is too risky to fix for beta2, so we will defer it to fcs.
It turns out by explicitly set <exclude-unlisted-classes> element to false eliminates the need to add the <class> elements. The fix is integrated into the trunk.
v.