facebook

how to set FetchType for jpa reverse engineering

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

    johnxyu
    Member

    Hi,

    Problem: use JPA/Hibernate, FetchType.LAZY is generated all the time for all relationships, which is not JPA default and not desired behavior I’m looking for.

    Action: I tried multiple times, even with a strategy class (but I may have implemented it wrong as I didn’t see clear documentation on it), I still couldn’t control fetch type generated. It’s always FetchType.LAZY even for ManyToOne joins.

    Desired Behavior: similar to Eclipse/JPA tool, give options: Default, Lazy, Eager.

    PS: I like the JDBC/Java type customization for MyEclipse, which seems to be missing from the Eclipse/JPA tool.

    Thanks,
    – John

    #312361 Reply

    John,
    I could replicate this at my end. I shall escalate this to the dev team member. They will get back to you on this.

    #312366 Reply

    johnxyu
    Member

    Thank you, looking forward to that.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: how to set FetchType for jpa reverse engineering

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