Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trouble with a View query  RSS feed

M Burke
Ranch Hand
Posts: 410
  • 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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!