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.

Bug 104257 - No need to add entity classes to persistence.xml if transaction-type="JTA"
Summary: No need to add entity classes to persistence.xml if transaction-type="JTA"
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-18 11:42 UTC by Lukas Jungmann
Modified: 2008-01-30 15:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2007-05-18 11:42:07 UTC
-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"
Comment 1 Nam Nguyen 2007-10-15 20:00:10 UTC
Perhaps we need to close this with some bug against TopLink implementation.
Comment 2 Peter Liu 2007-10-15 20:39:30 UTC
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.

Comment 3 Peter Liu 2007-10-16 02:01:09 UTC
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.

Comment 4 Lukas Jungmann 2008-01-30 15:27:48 UTC
v.