• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate-Unable to execute the HQL in z/OS

 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

in my Hibernate Class


Hibernate config.xml


and in the ApplVrsn.hbm.xml


and the ApplVrsn, I've teh following attributes:-



When I run this, I am getting the following error:-

org.hibernate.hql.ast.QuerySyntaxException: ApplVrsn is not mapped

When I testthe code in WAS on windows, it is working fine. But when I depoy in z/OS and test it it is not wroking and giving this error.

Can someone please help me?

Thanks in advance.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
org.hibernate.hql.ast.QuerySyntaxException: ApplVrsn is not mapped


Are you sure your hibernate.cfg.xml file is being found in the classpath and being read?
 
Opportunity is missed by most people because it is dressed in overalls and looks like work - Edison. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!