Loading ...
Sorry, an error occurred while loading the content.

Re: [netbeans-indonesia] Tugas ORM, Hibernate

Expand Messages
  • Ifnu bima
    Coba cek hibernate.cfg.xml apakah class yg dbuat uda dmapping ke sana? Atau pake jpa?cek di persistence.xml lihat class entitynya uda didaftarin dsana? Kl blm
    Message 1 of 2 , Jun 1, 2009
    • 0 Attachment
      Coba cek hibernate.cfg.xml apakah class yg dbuat uda dmapping ke sana?

      Atau pake jpa?cek di persistence.xml lihat class entitynya uda
      didaftarin dsana? Kl blm buka persistence.xml di design mode trus add
      entity class.

      Kl msh bingung buka project-template.googlecode.com ada beberapa
      sample yg bs dilihat.

      On 6/1/09, windu purnomo <purnomo_windu@...> wrote:
      > Assalamulaikum Saya dapat tugas mata kuliah sistem berorientasi objek,
      > membuat aplikasi basis data. Saya sudah bisa membuatnya tanpa
      > menggunakan ORM. Tapi, ternyata dosen, meminta tugas tersebut dikerjakan
      > dengan menggunakan ORM, hibernate. Saya yakin aktivis
      > netbeans-indonesia di sini, banyak yang jago dengan hibernate. Jika
      > tidak berkenan saya mohon bimbingan dan bantuan dari master semua. Saya
      > sudah mencoba mengikuti tutorial di www.netbeans.org/..., tentang
      > hibernate Tapi tida bisa berjalan, dan outputnya seperti ini:
      > org.hibernate.hql.ast.QuerySyntaxException: film_text is not mapped
      > [from film_text] at
      > org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(Se\
      > ssionFactoryHelper.java:158) at
      > org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElement\
      > Factory.java:87) at
      > org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:70)
      > at
      > org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:2\
      > 55) at
      > org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.ja\
      > va:3056) at
      > org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalke\
      > r.java:2945) at
      > org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.jav\
      > a:688) at
      > org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:544\
      > ) at
      > org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalke\
      > r.java:281) at
      > org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java\
      > :229) at
      > org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.ja\
      > va:228) at
      > org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.\
      > java:160) at
      > org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.ja\
      > va:111) at
      > org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77) at
      > org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56) at
      > org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache\
      > .java:72) at
      > org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionIm\
      > pl.java:133) at
      > org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.j\
      > ava:112) at
      > org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
      >

      --
      Sent from my mobile device

      Senior Engineer @ ArtiVisi Intermedia
      Java Training Center
      See our course @ artivisi.com

      http://ifnu.artivisi.com
      +62 856 9211 8687
      regards
    Your message has been successfully submitted and would be delivered to recipients shortly.