facebook

Code Generation Hibernate DAO, pojo

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #314008 Reply

    ronyosi
    Member

    Hi,

    So far so good. MyEclipse creates the Pojos and the Daos for the database 🙂

    Now, I would like the ID field fo the pojos to automatically generate GUIDvalues for creation of a table entry, but how do I include this in the code generation? I do not want to do it manually each time I regenerate.

    Any help is appreciated I have provided an example below!
    Thanks 🙂

    ie.

    @Id

    @GenericGenerator(name = “generator”, strategy = “guid”, parameters = {})
    @GeneratedValue(generator = “generator”)
    public String getID()
    {
    return ID;
    }

    #314022

    support-swapna
    Moderator
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Code Generation Hibernate DAO, pojo

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in