Hi,
the problem is that i don't have the permission to make changes on the DB because
it's a LIVE/Production DB. So problems with releases/changes and so on.
I tried to access now my attributs via @NamedQuery like this:
SELECT r.roadPK.origin.iata,r.roadPK.destination.iata, r.availabilityMethod FROM Road r
but there I got a compiler error:
Caused by: org.hibernate.HibernateException: Errors in named queries: Road.listAll
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:397)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
| at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
| at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
| ... 75 more
By testing with
SELECT r.roadPK.origin, r.roadPK.destination,r.availabilityMethod FROM Route r
i didn't get any error but also any output. lol Like i told it before, with SELECT
r.availabilityMethod FROM Route r is no problem!
So logically I can access my attributs via r.roadPK.origin.iata but I get there the error!
So I think that my mapping is wrong.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227445#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...