Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

276
Vistas
"from unexpected" when createQuery

I get a error when I createQuery:

'from' unexpected

enter image description here

My code is below:

    @Override
    public Admin findByAdmin(Admin admin) {

        return (Admin) sessionFactory.getCurrentSession().
                createQuery("from Admin where admin_name=? and pwd=?").
                setParameter(0, admin.getAdminName()).
                setParameter(1, admin.getAdminPwd()).
                uniqueResult();

    }
about 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

I'm new to this but had the same error. What fixed things was adding the Hibernate facet under Project Structure - Facets.

about 4 years ago · Santiago Trujillo Denunciar

0

To fix this error in intelliJ idea

Right click on Your Project ---> Framework support : check mark on "Hibernate"

Press OK.

about 4 years ago · Santiago Trujillo Denunciar

0

If you can't find Hibernate in your Project Structure settings (File --> Project Structure... --> Facets) then go to File --> Settings --> Plugins and type Hibernate in search field and verify if plugin is added to Intellij. After that you will find it under Facets in your project settings and add support.

In my case this was what helped me.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda