Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Working with Hibernate in Eclipse
Subject:   Synchronizing Files Problem
Date:   2004-08-08 18:11:22
From:   cosi
With the lastest version of hibernate, and hibernate syncrhonizer, I seem to have a problem with the generated Tracks.java. Its constructor accepts three values (id, title, filepath). So it follows that I receive this error from the compiler :


The constructor Track(String, String, Time, Date, short) is undefined CreateTest2.java


Any advice?



Thank you.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Synchronizing Files Problem
    2005-03-31 14:40:51  o2ekanem [View]

    Try adding the required constructor to Tracks.java


    public Track (java.lang.String _title, java.lang.String _filePath, java.sql.Time _time, java.util.Date _added, short _volume) {
    super();
    this.setTitle(_title);
    this.setFilePath(_filePath);
    this.setPlayTime(_time);
    this.setAdded(_added);
    this.setVolume(_volume);
    initialize();
    }