I have reverse engineered my database and generated domain code with Hibernate Tools. For each table (e.g. tabA), I get a file tabA.java and a file tabAId.java.
How are these supposed to be used? I want to write code like this:
tabA mtab = new tabA();
mtab.setPersonName("Bobby");
session.save(mtab);
However, the table fields are not available in the tabA.java-file, just in the tabAId.java-file. The tabA.java-file just contains the field:
private tabAId id;
with getters and setters.
I have tried to find some documentation on this matter, without success. Anybody how can help explain how these two files relate and how they are supposed to be used?
|