This content has been marked as final.
Show 1 reply
-
1. Re: Scaffold-generate do nothing
vineet.reynolds Apr 24, 2014 11:27 AM (in response to dinesh707)This is related to an existing issue: [FORGE-773] entities for scaffold could be binary, not source - JBoss Issue Tracker; we'll eventually get this fixed by allowing the scaffoldable JPA entities to reside in a different Maven module of the same project.
For now, you could use the same workaround I discussed in the other thread - generate the scaffold in the war project by placing the JPA entities in it. In fact, in the case of Java EE 6+ projects, the EAR style projects with an ejb jar and a war should be used only when you really need to (Java EE 5 and earlier had limitations on EJBs being required to be placed in in EJB-JARs and not in WARs); it is perfectly fine to create EJBs in your WARs.