-->
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: Which is the best way of inserting dynamic data?
PostPosted: Tue Aug 23, 2005 6:25 am 
Newbie

Joined: Fri May 13, 2005 5:20 am
Posts: 6
Hello,

I'm not sure how to solve my problem the best way:

I'm working with hibernate 3.1 alpha 1, Hibernate Annotations 3.1 , EntityManager 3.0.

I have lots of tables with lots of relations in-between.
I want to fill my tables by reading the datas out of a textfile. At the time I'm reading my datas, it is possible to identify the table, and the sort of datas that have to be stored. This all is fully dynamical.
Now begins my problem. I have my new dataset and I know the table where the datas should be inserted. Is it possible to take native sql for an insert, is it possible in any way that hibernate also updates all the relations?
Or is it better to write my datas in pojos and then save that pojo?

I hope anybody can give me an advice how to solve this problem in the best way!

Thanks,

Gaby


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.