-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dummy row create for null objects
PostPosted: Sun Aug 01, 2010 11:03 pm 
Newbie

Joined: Tue Jul 20, 2010 12:28 am
Posts: 2
Hi
I have a invoice class and an enitity class.

The entity class has a list of invoices
The invoice class has a sender of type entity and receipent of type entity. It is not necessary for the invoice class to have sender in my case but will have a receipent.

When I create the invoice without the sender and save, I get two rows created in the entity table, one for receipent and another row which has everything set to NULL (which i preassume relates to the sender object). I do not want this row in the table. Can you please point me in the right direction

Also in the invoice table I have a column which gets created call Entity_Id. I dont want this column to be created as well. I preassume this get created because I have list of invoices in the entity object. This invoice should already be bound to the recepient id that I have in the invoice class


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.