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 174701 - JSF Pages from Entity Classes generates uncompilable code with GF b67
Summary: JSF Pages from Entity Classes generates uncompilable code with GF b67
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 22:11 UTC by Petr Pisl
Modified: 2009-10-17 11:23 UTC (History)
3 users (show)

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 Petr Pisl 2009-10-15 22:11:08 UTC
The JSF from entity classes works well with Glassfish build 66, but doesn't work with build 77, because in the b77 the
EntityManager doesn't have public method getQueryBuilder(). Please evaluate, whether there is not new version of the
EclipseLink.
Comment 1 Petr Jiricka 2009-10-15 22:40:53 UTC
Could be EclipseLink related - it was updated from M8 to M9 (see:
http://www.eclipse.org/eclipselink/downloads/milestones.php) between GF build 66 and 67.
Comment 2 David Konecny 2009-10-15 23:12:56 UTC
I've tried it on GF3-b68 from last night and it looks like EntityManager.getQueryBuilder() method was renamed to
EntityManager.getCriteriaBuilder(). I will ask spec lead for list of other changes but if NB68 Beta is going to contain
GF3 build 67 and newer then we have to update EJB code generator.
Comment 3 David Konecny 2009-10-16 00:21:22 UTC
Following should be the last three API changes (according to JPA spec lead):
- QueryBuilder changed to CriteriaBuilder (and getQueryBuilder -> getCriteriaBuilder() )
- Predicate.negate() changed to Predicate.not()
- MappedById removed and replaced by MapsId
Comment 4 Sergey Petrov 2009-10-16 15:52:26 UTC
orm.xsd in gf3-b67 still contain "mapped-by-id" attribute.
negate isn't yet used in generated code.
will update getQueryBuilder -> getCriteriaBuilder() usages.
Comment 5 Sergey Petrov 2009-10-16 17:16:53 UTC
http://hg.netbeans.org/web-main/rev/1ea8c58fe3e6
Comment 6 Quality Engineering 2009-10-17 11:23:49 UTC
Integrated into 'main-golden', will be available in build *200910170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1207b15b378c
User: sergeyp@netbeans.org
Log: fix #174701 - update bundled eclipselink to M9 to be consistent with latest gf