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 92192 - Entity from DB generates invalid code in J2SE project
Summary: Entity from DB generates invalid code in J2SE project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords: REGRESSION
Depends on: 92237
Blocks:
  Show dependency tree
 
Reported: 2007-01-10 11:00 UTC by Jan Horvath
Modified: 2007-01-23 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IAE (1.11 KB, text/plain)
2007-01-10 11:01 UTC, Jan Horvath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Horvath 2007-01-10 11:00:18 UTC
build 20070107091900

-create j2se application
-create entity classes from db
-ERROR: wizard generates only plain classes with construtcor
-EXCEPTION: Caused by: java.lang.IllegalArgumentException: Type
javax.persistence.Entity cannot be found
-WORKAROUND: add TopLink library on the project classpath
Comment 1 Jan Horvath 2007-01-10 11:01:03 UTC
Created attachment 37212 [details]
IAE
Comment 2 Erno Mononen 2007-01-10 12:52:46 UTC
Passing to Andrei. A similar problem exists very likely in the standard entity 
class wizard as well, I'll file a separate issue for that.
Comment 3 Rochelle Raccah 2007-01-11 01:33:43 UTC
duplicate of issue 75948?
Comment 4 Andrei Badea 2007-01-11 12:24:47 UTC
Don't think so, issue 75948 didn't cause the generation to fail in 5.5.
Comment 5 Andrei Badea 2007-01-11 17:52:11 UTC
Fixed. Worked around issue 92237; the workaround should be removed when that
issue is fixed.

Checking in src/org/netbeans/modules/j2ee/persistence/provider/ProviderUtil.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/provider/ProviderUtil.java,v
 <--  ProviderUtil.java
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Bundle.properties;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/EntityClassesPanel.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/EntityClassesPanel.java,v
 <--  EntityClassesPanel.java
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGenerator.java;
/cvs/j2ee/persistence/src/org/netbeans/modules/j2ee/persistence/wizard/fromdb/JavaPersistenceGenerator.java,v
 <--  JavaPersistenceGenerator.java
new revision: 1.10; previous revision: 1.9
done
Comment 6 Jan Horvath 2007-01-23 16:00:26 UTC
v