Mat Michel

Greenhorn
+ Follow
since Mar 03, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mat Michel

Hi

I am not sure what could be exact name for this type of pattern.

My problem is : We have set of java bean classes having various type of attributes and values, we need some kind of generic pattern using which we can
provide single method to xml or any other format to print java beans attribute name and value.

thanks,
Mat
Hi

We have requirement where we have one Schema with all Tables are managed using JPA so has mapping between Tables and POJO is in place.

Now everyday some process runs brings new data in Non- JPA managed tables from those tables based on some ETL presently system loads
JPA managed tables.

Now we have requirement is to populate JPA managed POJO’s from Non_JPA managed tables using queries which used by ETL before and
Persist it to database via cache write back

Does anyone come across such situation where JPA managed database tables are populated by querying different non-JPA managed tables being in different schema?
What should be approach to handle such migration?

One approach I have is to use Native query feature of JPA to query data from Non-JPA based tables and perform population using return SqlResultSet.
When I checked JPA implementation of Hibernate it has very few details… so being concern about Native query approach.

Please provide you input on such requirement.

Matt