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 192285 - Canonical metamodel incorrectly generated for JPA 1.0
Summary: Canonical metamodel incorrectly generated for JPA 1.0
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-22 14:51 UTC by Petr Jiricka
Modified: 2010-11-27 06:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
I am attaching the generated DiscountCode_.sig file (919 bytes, text/plain)
2010-11-22 14:53 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-11-22 14:51:48 UTC
1. Register WebLogic 10.3.4 server
2. In the admin console, change persistence provider to TopLink
3. Create a new Java EE 5 web project with WLS target
4. Create some entities from database (e.g. DiscountCode) - the IDE will use EclipseLink 2.x as the persistence provider and JPA 1.0 as the JPA version, which is correct.

When you go to $user_dir/var/cache, there is a file DiscountCode_.sig, which means that the canonical metamodel processor was launched and the IDE attempted to generate the metamodel. This causes further problems such as bug 190237 (hence P2 priority).
Comment 1 Petr Jiricka 2010-11-22 14:53:21 UTC
Created attachment 103190 [details]
I am attaching the generated DiscountCode_.sig file
Comment 2 Petr Jiricka 2010-11-22 14:55:55 UTC
Note, when you just Clean & Build using the Ant script, the metamodel is not generated, which is correct.
Comment 3 Sergey Petrov 2010-11-25 14:40:25 UTC
Looks like a regression of https://netbeans.org/bugzilla/show_bug.cgi?id=189697 as ModelGen lib is added but shouldn't.
Comment 4 Sergey Petrov 2010-11-26 09:25:02 UTC
http://hg.netbeans.org/web-main/rev/9067c3bc6e8c modelgen.jar isn't added for weblogic now, may be it was unhandled case after 189697 fix.
Comment 5 Quality Engineering 2010-11-27 06:28:20 UTC
Integrated into 'main-golden', will be available in build *201011270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9067c3bc6e8c
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: fix #192285 do not add modelgen jar if project do not support jpa2.0