I'm not good with annotation for hibernate but I do know the mappings, so maybe I can help.
First your objects need to have the foriegn keys setup in the db. Then your objects need to have the relationship in them. So something like this is needed in your seller class.
Code:
public class Seller {
public List<ItemClass> items;
public Invoice() {
items = new LinkedList<ItemClass>();
}
public List<ItemClass> getItems() {
return items;
}
public void setItems(List<ItemClass> payments) {
this.items = items;
}
}
this is the mapping I would use for that not sure how the annotation would look but should be similar
Code:
<bag name="items" lazy="false" inverse="true"
cascade="all">
<key column="sellerNum" /> <-------foriegn key column
<one-to-many
class="ItemsClass" />
</bag>
later on you could do the many-to-one so that you can get an items seller.