-->
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: Generating POJO from db column name
PostPosted: Sat Jun 11, 2011 9:40 am 
Newbie

Joined: Sat Jun 11, 2011 9:31 am
Posts: 2
Hi,

I have 2 tables in my database,

Shop Product
id id
name name
shop_id

I have this information in a text file, I am able to parse text file and get column and values from it.
When I parse product file, I need to automatically insert entry in shop table also with given shop_id.

I can think of solution that populate pojo's with these column and value information, but I dont know how to get the setter from column name.

any help is appreciated, if someone can give any other efficient solution that will be really helpful.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.