-->
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.  [ 2 posts ] 
Author Message
 Post subject: Oracle Meta-data Table Select problem
PostPosted: Tue Dec 12, 2006 6:49 am 
Beginner
Beginner

Joined: Thu Jun 29, 2006 8:41 am
Posts: 41
Hi,

Here at the lab, a co-worker friend created a program that read csv files (excel tables), compared the data with data from a meta-data table that Oracle creates automatically for every base (in this case, a specific one) and created scripts to populate another base.

Everything done using SQL queries.

Now, I'm trying to replace the SQL stuff with Hibernate and I'm having a problem.

Every search for a table in this meta-data table from oracle returns, instead of all colunms from the table (like every returned object is a colunm) I get a load of the same colunm.

Explaining better: If a table has 16 colunms, it will return 16 times the same colunm.

The SQL generated by hibernate (on the console) is right (we tested it in SQL Developer and got a correct result).

We couldn't locate mapping errors, so, what may be the problem?

_________________
Falci - Heavy Worker!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 19, 2006 6:34 am 
Beginner
Beginner

Joined: Thu Jun 29, 2006 8:41 am
Posts: 41
Good to know nobody lost his time with this.

I figured the problem out when writing the post down (but as I wasn't exactly sure, I posted anyway)

It was, indeed, a mapping problem. We mapped the table wrongly. We should have used 2 certain columns as PKs when we used only one of them.

Now it works.

_________________
Falci - Heavy Worker!


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

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.