Hi everyone,
I'm new to Hibernate. When I'm trying to select data from the database, the following exception occurs:
in expected: RELATION [SELECT RELATION.FRID FROM TB_HIBERNATE_RELATION RELATION]
Here is the code which I wrote :
Session session = null;
SessionFactory _factory = new Configuration().configure().buildSessionFactory();
session = _factory.openSession();
org.hibernate.Transaction tx = session.beginTransaction();
String currentFR = "SELECT RELATION.FRID FROM TB_HIBERNATE_RELATION RELATION";
Query query = session.createQuery(currentFR);
Please help me on this: I'm using MS SQL Server2000 database
Thanks,
Midhun
I'm new to Hibernate. When I'm trying to select data from the database, the following exception occurs:
in expected: RELATION [SELECT RELATION.FRID FROM TB_HIBERNATE_RELATION RELATION]
Here is the code which I wrote :
Session session = null;
SessionFactory _factory = new Configuration().configure().buildSessionFactory();
session = _factory.openSession();
org.hibernate.Transaction tx = session.beginTransaction();
String currentFR = "SELECT RELATION.FRID FROM TB_HIBERNATE_RELATION RELATION";
Query query = session.createQuery(currentFR);
Please help me on this: I'm using MS SQL Server2000 database
Thanks,
Midhun