How to save data in different tables with one entity [message #650537] |
Tue, 25 January 2011 08:07  |
Eclipse User |
|
|
|
Hi,
I have multiple tables with same columns like
id,mobilenumber,message
Now on the base of different body of message i have to save data in different tables.
Now if i create entity for each table then only change is table name.
is there any possibility that i save data with one entity? or i have to create entities?
Regards,
imran
|
|
|
|
Re: How to save data in different tables with one entity [message #651164 is a reply to message #651037] |
Fri, 28 January 2011 01:08  |
Eclipse User |
|
|
|
Hi James,
Thanks for your reply, couple of more points to mention
1- My application is only inserting data in different tables.
2- Database trigger will not help me please see below example
I receive SMS from subscribers and my records will be like that
id, shorcode, mobilenumber, message
1, 321, 123456, b
2, 321, 123456, fm
3, 321, 123456, del
4, 321, 123456, add
Now what my application will do is that it check
if message equal to b
insert into billinfo table
if message equal to fm
insert into freemin table
if message equal to del
insert into deletion table
I hope now my requirements are more clear.
Regards,
imran
|
|
|
Powered by
FUDForum. Page generated in 1.84248 seconds