Results 1 to 4 of 4

Thread: Feature request: Generate models from entities or classes

    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.
  1. #1
    Sencha Premium User
    Join Date
    Jun 2012
    Posts
    48
    Answers
    1

    Default 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.

  2. Thanks for the new feature request! I have opened a ticket in our tracker for future consideration.

  3. #2
    Sencha - Dev Team
    Join Date
    Mar 2015
    Posts
    147
    Answers
    51

    Default

    Thanks for the new feature request! I have opened a ticket in our tracker for future consideration.

  4. #3
    Sencha - Dev Team
    Join Date
    Mar 2015
    Posts
    147
    Answers
    51

    Default

    Quote Originally Posted by bartyhoho View Post
    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.

  5. #4
    Sencha Premium User
    Join Date
    Jun 2012
    Posts
    48
    Answers
    1

    Default

    Quote Originally Posted by Chris.OBrien View Post
    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.

Similar Threads

  1. [OPEN] [FEATURE REQUEST] generate an empty app (no starter template)
    By cassinisolutions in forum Sencha Cmd
    Replies: 2
    Last Post: 28 Jun 2013, 5:19 AM
  2. Feature Request: Import models and stores from JS files
    By Frith in forum Sencha Architect 2.x: Bugs
    Replies: 2
    Last Post: 15 Apr 2013, 7:17 AM
  3. [OPEN] Feature Request: Higlight / Mark overriden classes in project inspector
    By quixit in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 7 Jan 2013, 11:19 AM
  4. [DUP] Feature Suggestion - Generate Models based off of response data
    By titouDev in forum Sencha Architect 2.x: Bugs
    Replies: 1
    Last Post: 7 Sep 2012, 12:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •