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 127010 - JSF Pages from Entity Classes generates bad code
Summary: JSF Pages from Entity Classes generates bad code
Status: VERIFIED DUPLICATE of bug 127291
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-08 17:17 UTC by Dan Kolar
Modified: 2008-05-13 16:37 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 Dan Kolar 2008-02-08 17:17:01 UTC
Product Version: NetBeans IDE Dev (Build 20080206130412)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

1) Generate Entity classes from sample database
2) Invoke JSF Pages from Entity Class -> Add all -> Next
3) Change prefiled package value (it defauls to same as entity classes package) to some other valid value
4) Finish

After a while, code is generated, but some Converter/Controller classes behave as if they were in entity classes package
and don't have imports for entity classes.
Comment 1 Dan Kolar 2008-02-08 17:44:06 UTC
Another small issue:
When table id is Char, Converter class use expression Character id = new Character(string), which is also invalid, as
string is String and for Character isn't constructor Character(String string), like for example for Integer....
Comment 2 Matthew Bohm 2008-02-08 18:41:52 UTC
We should probably consider the second issue a separate bug.
Comment 3 Dan Kolar 2008-02-11 09:25:00 UTC
I filled issue 127095 for the second issue.
Comment 4 Matthew Bohm 2008-02-13 23:04:21 UTC

*** This issue has been marked as a duplicate of 127291 ***
Comment 5 Dan Kolar 2008-05-13 16:37:46 UTC
v.