Hi, i have some problem with my role table. I've decided to rename some
columns (e.g. role[ 'id' to 'Role_id' ]) of course then i change also
accesors like :

private Long roleId;
...
    @Id @Column(name="Role_id",
nullable=false)@GeneratedValue(strategy=GenerationType.AUTO)
    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long id) {
        this.roleId = id;
    }

and the same problem after changing  column 'Name' (I've changed named
Querry in Role class )

Caused by: org.hibernate.HibernateException: Errors in named queries:
findRoleByName
        at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:365)
        at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
        at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
        at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
        at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
        at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
        ... 88 more

But can't make it to run. I'm getting SQLGrammarException that my table
doesn't have column 'role0_.id'
i don't know why it is still  related to already changed old name ?
I will be appreciate for any help 
-- 
View this message in context: 
http://www.nabble.com/ListenerStartup-tp24342719s2369p24342719.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

Reply via email to