Hi,
I cannot understand why this simple query is not created. I call this method from a test and it throws an exception complaining about line 1, column 7 where I cannot see anything wrong.
public IList<Continent> GetContinentByName(string name)
{
ISession session = GetSession();
IQuery query =
session.CreateQuery("select from Continent where Continent.ContinentShort='Atlantis'");
// (........) Next step will be getting the list from the query if I can make it work
I get antlr exception below
TestCase 'M:DataAccessLayer.HibernateDataProvider.GetContinentByName(System.String)' failed: Exception of type 'Antlr.Runtime.NoViableAltException' was thrown. near line 1, column 7 NHibernate.Hql.Ast.ANTLR.QuerySyntaxException: Exception of type 'Antlr.Runtime.NoViableAltException' was thrown. near line 1, column 7
Any suggestions?
Thanks