• Post Reply Bookmark Topic Watch Topic
  • New Topic

Trouble with a View query

M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to query a View that is stored in MS SQL2000. Hibernate generated the classes and mapping files using an Eclipse plugin. They seem to be OK. But if I do a createQuery().list I get a list with a null value for each object that meets the criteria. Also, this code works fine if I query a real table.

Here is the code I am running:

entityList = HibernateSessionFactory.currentSession()
.createQuery("FROM hibernate.jdo.FindComboGroupWofieldsFromQueueId").list();

I have several hibernate generated files. A mapping and two jdo classes. One represents the View, the other is a composite key containing the output. I will post the code if you want.
[ October 14, 2005: Message edited by: M Burke ]
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!