ListenerStartup

3 messages Options
Embed this post
Permalink
nevermind_and

ListenerStartup

Reply Threaded More More options
Print post
Permalink
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 I 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
Mike Horwitz

Re: ListenerStartup

Reply Threaded More More options
Print post
Permalink
Are you using a full source version of Appfuse? In order to change role and/or user column names you will need to work with the full source and make changes in a number of places.

Mike

2009/7/5 nevermind_and <[hidden email]>
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: ListenerStartup
Sent from the AppFuse - User mailing list archive at Nabble.com.

nevermind_and

Re: ListenerStartup

Reply Threaded More More options
Print post
Permalink
First of all thanks for your attention, I dont exactly know how to use it - when i've downloaded full
source, I have some problems too, but apart of that currently i'm working with war file imported to
eclipse, and there i cant see any libraries named appfuse or sort of that in my project folder or in
files. But what is strange i don't know why it's creating folder named ImportedClass with some
build classes in the same level as WebContent,src,build etc.
I would like to ask you also of maven folder created in my project (automatically ? )

'\WebContent\META-INF\Maven'

with some .pom's and properties files and file named :

'AppFuse JSF Application (war).dbschema'

(i know that is connected with my DB but i dont know for what reason )
Mike Horwitz wrote:
Are you using a full source version of Appfuse? In order to change role and/or user column names you will need to work with the full source and make changes in a number of places. Mike