Service in Grails-Klasse nutzen
-
Hallo,
ich habe in einem Grails-Projekt eine Klasse
class ScoringJob { int stamp int seed double score JobStatus status IdService idService ... }
in der ich einen Service IdService nutzen will. Obwohl die Zeile
IdService idService
in einem Controller problemlos läuft, bekomme ich bzgl. obigen Code die Meldung
2009-01-30 11:22:27.449::WARN: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: An association from the table scoring_job refers to an unmapped class: IdService: org.hibernate.MappingException: An association from the table scoring_job refers to an unmapped class: IdService
Oder kurz: IdService wird nicht gefunden.
Weiss jemand, was hier los ist?