emmanuel wrote:
version?
It is 3.1 rc1 now, and any version before. Here is what happens now:
[java] Exception in thread "main" java.lang.NullPointerException
[java] at org.hibernate.hql.ast.HqlSqlWalker.createFromJoinElement(HqlSqlWalker.java:312)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.joinElement(HqlSqlBaseWalker.java:3252)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3044)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2922)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:690)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:546)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:283)
[java] at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:231)
[java] at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:214)
[java] at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:154)
[java] at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:101)
[java] at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:473)
[java] at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1032)
[java] at org.hibernate.impl.SessionImpl.list(SessionImpl.java:982)
[java] at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
[java] at Test.getSomeRole(Test.java:51)
[java] at Test.run(Test.java:35)
[java] at Test.main(Test.java:18)
[java] Java Result: 1