[forge-issues] [JBoss JIRA] (FORGE-1886) Scaffolding generates java.lang.Long for Ids
George Gastaldi (JIRA)
issues at jboss.org
Tue Jun 17 12:59:24 EDT 2014
[ https://issues.jboss.org/browse/FORGE-1886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi closed FORGE-1886.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.6.1.Final
(was: 2.x Future)
Resolution: Done
> Scaffolding generates java.lang.Long for Ids
> --------------------------------------------
>
> Key: FORGE-1886
> URL: https://issues.jboss.org/browse/FORGE-1886
> Project: Forge
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Scaffold
> Affects Versions: 2.6.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.6.1.Final
>
>
> When I generate an Entity and then Scaffold the JSF web app, my Backing Beans have the following :
> {code}
> private java.lang.Long id;
> public java.lang.Long get Id() {
> return this.id;
> }
> {code}
> But in the previous release of Forge it used to be like that :
> {code}
> private Long id;
> public Long get Id() {
> return this.id;
> }
> {code}
> This is how to reproduce it :
> {code}
> [Devoxx]$ project-new --named projlong
> [projlong]$ jpa-new-entity --named MyEntity
> [MyEntity.java]$ scaffold-generate --targets org.projlong.model.MyEntity
> [MyEntity.java]$ cd ../..
> [projlong]$ cd view/
> [view]$ more MyEntityBean.java
> @Named
> @Stateful
> @ConversationScoped
> public class MyEntityBean implements Serializable
> {
> private static final long serialVersionUID = 1L;
> /*
> * Support creating and retrieving MyEntity entities
> */
> private java.lang.Long id;
> public java.lang.Long getId()
> {
> return this.id;
> }
> public void setId(java.lang.Long id)
> {
> this.id = id;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the forge-issues
mailing list