hibernateexception

NHibernate.HibernateException: No session bound to the current context

I am getting this error when I am trying to get the CurrentSession NHibernate.Context.CurrentSessionContext.CurrentSession() at NHibernate.Impl.SessionFactoryImpl.GetCurrentSession() ...

JPQL: InnerSelect causes PersistenceException (HibernateException: Errors in named queries)

Hi I try to use an inner select, but get only the exception "HibernateException: Errors in named queries" The both JPA entities: public class A implements Serializable { @Id @Column(nullable = false) @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; } public class B implements Serializable { @Id @...