HbnContainer loading

Hi all,

I’m currently converting my project from handwritten database code to use Hibernate and the HbnContainer. But I’m having some trouble figuring out how to use the HbnContainer.

It looks like the Hibernate code is working, but I don’t see the objects in the database. Do I have to code something manually, or can the HbnContainer be used directly?

Right now, I’m simply doing something like this:

dataSource = new HbnContainer(Entry.class, this);
entryList.setContainerDataSource(getDataSource());

Where entryList is a Table subclass.

But the table is empty.

Do I have to load the items from the HbnContainer into another container manually, or should it populate the table automatically?

Bo Thorsen,
Monty Program AB.

Never mind, I found the problem. The hibernate setup replaced the old entries table in the database, so it wiped out the rows.