You found a bug! We've classified it as
ECP-100
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
-
Sencha Premium User
Answered: Feature request: Generate models from entities or classes
I saw the demo of the plugin at the DC roadshow yesterday, and one feature request I'd like to make is the ability to generate the Ext models from the backend classes or entities. Especially after seeing the grid columns generated from the model.
-
Best Answer Posted by
Chris.OBrien
Thanks for the new feature request! I have opened a ticket in our tracker for future consideration.
-
Sencha - Dev Team
Thanks for the new feature request! I have opened a ticket in our tracker for future consideration.
-
Sencha - Dev Team

Originally Posted by
bartyhoho
I saw the demo of the plugin at the DC roadshow yesterday, and one feature request I'd like to make is the ability to generate the Ext models from the backend classes or entities. Especially after seeing the grid columns generated from the model.
When you say "backend classes or entities" can you give more details with what you mean? Do you have a Java backend with ORM or JDBC entities? Thanks.
-
Sencha Premium User

Originally Posted by
Chris.OBrien
When you say "backend classes or entities" can you give more details with what you mean? Do you have a Java backend with ORM or JDBC entities? Thanks.
Yes, I have a Java backend using JPA. The following is a sample entity that is mapped to a database table:
Code:
@JsonIdentityInfo(generator=ObjectIdGenerators.PropertyGenerator.class,property="id")
@Entity
@Table(name="XXX_user")
public class User implements Serializable {
private static final long serialVersionUID = 9006147900525671337L;
@Id
@Column(name = "USER_ID")
private long id;
@Column(name = "USERNAME", length = 60, unique = true, nullable = false)
private String username;
}
But the intent of my comment was more general: I'd like to generate Ext models from any POJO or similar class. Maybe something like right-click on a package and have the plugin generate models from every class in the package.