facebook

Questions after doing the Spring-Hibernate + annot. tutorial

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #286867 Reply

    Dr.Drane
    Member

    Hello,

    I tried the reverse engineering Spring-Hibernate tutorial (with annotations) and it’s very impressive what MyEclipse can do. Truly awesome.

    This arose some questions for me:

    * Does this also work with linked (primary/foreign key) tables? Will the link also maintained in the generated code?

    * Can MyEclipse also do the same things in a non-reversed engineering way?

    What I mean is that, if I have a user class, it it possible to generate the DAO objects too? Or perhaps even create a user table?

    Thank you very much and have a nice day!

    #286899 Reply

    Dr.Drane
    Member

    Well I already found out that it’s indeed possible to automatically create tables. 🙂 Nice!

    #286900 Reply

    Loyal Water
    Member

    Like you found out, Our Hibernate and JPA reverse-engineer tools honor all relationships defined in your DB. So once you have your foreign keys setup correctly, when you reverse-engineer the tables together (at the same time), MyEclipse will generate the correct many-to-one and one-to-many relationship for you.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Questions after doing the Spring-Hibernate + annot. tutorial

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