-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Fehler in NamedQueries
PostPosted: Mon Jan 30, 2006 8:02 am 
Newbie

Joined: Mon Jan 30, 2006 7:51 am
Posts: 7
Hallo!
Ich bekomm immer eine HibernateException beim laden der Konfiguration wenn ich folgende NamedQuery in mein Mapping einbinde:
Code:
<hibernate-mapping>
    <sql-query name="UserProjektVorgabeQuery">
        <return alias="v" class="model.UserProjektVorgabe">
            <return-property name="qnummer"        column="qnummer"/>
            <return-property name="vaterprojekt"   column="vaterprojekt"/>
            <return-property name="projektbereich" column="projektbereich"/>
            <return-property name="vorgabeprojekt" column="defaultarea"/>
        </return>
        SELECT m.qnummer         AS qnummer,
               pb.vaterprojekt   AS vaterprojekt,
               pb.projektbereich AS projektbereich,
               m.default_area    AS defaultarea
          FROM adm_vfm_kr.TBLMITARBEITER      m,
               adm_vfm_kr.TBLBENUTZERGRUPPEN  b,
               adm_vfm_kr.TBLPROJEKT_BEREICHE pb
         WHERE m.benutzergruppe = b.gruppennr
           AND b.vorgabeprojekt = pb.projektbereich
           AND m.qnummer        = :QNUMMER
    </sql-query>
</hibernate-mapping>


Der Stacktrace:
Code:
org.hibernate.HibernateException: Errors in named queries: UserProjektVorgabeQuery
        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1164)
        at model.HibernateUtil.init(HibernateUtil.java:18)
        at model.TestKlasse.main(TestKlasse.java:87)



Hat wer eine Ahnung woran das liegen könnte?
Hibernate ist aktuell und ohne diese Query wird das File geparst..
Vielen Dank im Vorraus!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 31, 2006 10:28 am 
Newbie

Joined: Wed Jan 11, 2006 5:15 am
Posts: 15
Edit: Sorry, dumme Idee von mir...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.