[
https://issues.jboss.org/browse/FORGE-1886?page=com.atlassian.jira.plugin...
]
Antonio Goncalves updated FORGE-1886:
-------------------------------------
Description:
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}
was:
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}
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
Fix For: 2.x Future
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)