facebook

Eclipse 6.01 Hibernate Reverse Engineering

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

    mvbaffa
    Member

    Hi,

    I am a newbie in Hibernate and I am trying to develop my first application.

    In Eclipse 6.01 I am generating, with reverse engineering tools, the java classes for an MS Sql Server database tables.

    The question is How can I, using these Eclipse tools, define the collection type generated for one-to many relationships. Eclipse is generating Set but I would like to generate List.

    Besides that Eclipse is generating something like this:
    private Set fund = new HashSet(0);

    But the compiler wants this:
    private Set fund = new HashSet<Object>(0);

    I have a very large model and I cannot fix one by one this problems. Is there a way to ask for Eclipse to generate automatically the second statement ???

    Maybe this is too simple but I could not find in the wizard pages a solution.

    Can you help me

    Thanks in advance

    #280153 Reply

    Brian Fernandes
    Moderator

    This message has not been recovered.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Eclipse 6.01 Hibernate Reverse Engineering

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