facebook

DBBrowser: Create hibernate mapping problem

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

    Al Dev
    Member

    I am trying to create database table ‘hibernate mapping’ in DBBrowser and I am getting this error:

    Invalid path:/hibernate.cfg.xml

    Even though I have the hibernate.cfg.xml in src folder.

    what is wrong

    #222553 Reply

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #222586 Reply

    I had the same problem and I resolved it by setting correctly .myhibernatedata file (same location as .project). I added the missing line
    “config.configFilepath=/fs/java/src” (where “fs” is my project’s name).
    See below my entire .myhibernatedata:
    #
    #Wed Jan 12 10:22:46 CET 2005
    config.password=
    config.name=
    config.username=
    config.dialect=
    config.className=
    config.configFilepath=/fs/java/src
    libInstallFolder=/release/config
    addLibs2Project=true
    config.url=
    config.configFilename=hibernate.cfg.xml
    config.useDriver=true
    configFile=/fs/java/src/hibernate.cfg.xml
    createConfigFile=true
    addLibs2Classpath=true
    config.basePersistenceClass=
    config.keyGenerator=sequence
    config.copyJarFiles=true

    Hope this could help you !

    Nicolas

    #222588 Reply

    Riyad Kalla
    Member

    Nicolas,
    Thank you for following up with your help; I will check with the developer to see if we have seen instances of this config setting getting lost.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: DBBrowser: Create hibernate mapping problem

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