I am using JBoss IDE 1.5 and I am trying to generate from Hibernate.

After generating I get the following error in Home files

  |     public Dag findById( int id) {
  |         log.debug("getting Dag instance with id: " + id);
  |         try {
  |             Dag instance = (Dag) sessionFactory.getCurrentSession()
  |                     .get("Dag", id);
  |             if (instance==null) {
  |                 log.debug("get successful, no instance found");
  |             }
  |             else {
  |                 log.debug("get successful, instance found");
  |             }
  |             return instance;
  |         }
  |         catch (RuntimeException re) {
  |             log.error("get failed", re);
  |             throw re;
  |         }
  |     }

The method get(Class, Serializable) in the type Session is not applicable for 
the arguments (String,  int)

I've put Hibernate3.jar in my project-Library's

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926565#3926565

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926565


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to