facebook

is there any Hibernate template I can edit?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226143 Reply

    jackjiao
    Member

    the auto generated Hibernate java file does not contain a class constructor like this:

    public User(String name, String address, int age, … all the table fields){}
    public User(String name, String address, … minimum of the table fields){}

    #226145 Reply

    Riyad Kalla
    Member

    If you want to modify the generated classes you should override the concrete subclass, that will not be regenerated for you (so all customizations should go there) but the base Abstract class will get regenerated.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: is there any Hibernate template I can edit?

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