facebook

[Closed] Bug generating hibernate from database

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

    kauu
    Member

    A big problem when I generate Hibernate Mapping files form a exist database with Myeclipse.
    my Eclipse’s version is 3.1 and MyEclipse version is 4.1.1
    when i choose the Hebernate 3.0
    i generate mapping files from a exist database with the MyEclipse tools ,i just can’t generate files into my choosen packge, any way the generated files were generated in the default packge.
    but when i choose the Hebernate 2.1,it’s OK when i generate Mapping files to my choosen packge.
    so is it a bug or my action is wrong , how can i deal with it??
    any reply will be appreciation.

    #253065 Reply

    Haris Peco
    Member

    kauu,

    Please, try next :

    – make java project with separate source and binary folder
    – add MyEclipse hibernate 3 capabilities
    – make connection profile and call ‘Hibernate mapping’ wizard
    – show to source dir of java projects (Java src folder in Page 1 of wizard)
    – type your package name (Java package in Page 1 of wizard)
    – add other properties in wizard for your mappings
    – call finish wizard

    It have to be generate to specified source folder and specified package

    Best

    #253069 Reply

    kauu
    Member

    thx,
    i think i get it

    the point is that , when type the Class Name of the database table, i didn’t type like this com.babatu.hibernate.User
    i just typed User, so it generated classes to the default packge.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] Bug generating hibernate from database

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