Hello,
I have a problem with a very basic query
Code:
"from Customers customer where customer.name='"+companyName+"'"
All the db colls are mapped (checked it a thousend times) but still i get the error below
Code:
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; SQL [select customers0_.id as id0_, customers0_.name as name0_, customers0_.address as address0_, customers0_.postalCode as postalCode0_, customers0_.city as city0_, customers0_.telephone as telephone0_ from saktiehuis.saktiehuis.customers customers0_ where customers0_.name='test']; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
The thing i noticed is this "from saktiehuis.saktiehuis.customers customers0_" saktiehuis is the database but hibernate puts it twice in the generated sql query. Can someone help me? Please!
Grtz