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.
see Customer* in attached project for: @PostPersist public void postCreate (){ System.out.println("Customer::postCreate:"); } @PostRemove public void ejbRemove() { System.out.println("Customer::postRemove"); } we generate uncompilable: @XmlElement public void getPostCreate() { return (expandLevel > 0) ? entity.getPostCreate() : null; } @XmlElement public void getEjbRemove() { return (expandLevel > 0) ? entity.getEjbRemove() : null; }
Created attachment 74435 [details] sample project
There is one additional problem with generated CustomerConverter class. It doesn't have import for Address entity. It has Subscription import . Probably import addition for Subscription entity somehow overrides import for Address entity. This issue should be fixed also.
changeset: 178801:649b6f16123e user: Denis Anisimov <ads@netbeans.org> date: Wed Oct 06 11:58:09 2010 +0400 summary: Fix for BZ#154381 - uncompilable code generated for lifecycle methods
Integrated into 'main-golden', will be available in build *201010070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/649b6f16123e User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#154381 - uncompilable code generated for lifecycle methods
v. in 5e6add243b4b