Sorry, i just copied this from the bookmark example.
But anyhow even if i put an actual filed like "first", i get the same error.
The error is about "owner" not being mapped, my guess is that the declaration of the "Owner" class using the annotations is failing somehow. However when i use the "bookmark" example it runs fine, so i don't quite get it :-)

Hopefully Nathan will see this email, he probably will know what i'm doing wrong :-)


Dirk Markert wrote:

Hi Thibaut,
I think the error is here:
final IModel listModel = new HibernateListModel("from Owner order by name") ;
There is no 'name' attribute.
Dirk


2006/3/21, Thibaut Colar <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:

    Ok sounds good.
    I had just downloaded the wicket example that use hibernate as well.
    So will look at that too.
    But if i can get Databinder to work that would be even better, i like
    the idea (no XML :-) etc....)

    Thanks for the help.

    Igor Vaynberg wrote:

    > if you want an example of a wicket+spring+hibernate app look at
    > wicket-phonebook in wicket stuff cvs. i think more people here have
    > experience with that setup so you will be able to find more help.
    >
    > -Igor
    >
    >
    > On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
    >
    >     I agree with this, however so far i found no contact infos
    whatsoever,
    >     will look some more.
    >     I figured some other wicket users might have experience with
    >     databinder.
    >
    >     Igor Vaynberg wrote:
    >
    >     > have you tried emailing the author of databinder, that
    might be a
    >     > better place to seek help.
    >     >
    >     > -Igor
    >     >
    >     >
    >     > On 3/20/06, *Thibaut Colar* < [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
    >     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
    >     > <mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>> wrote:
    >     >
    >     >     I believe with Databinder wich uses jaav5 annotations i
    >     don't need
    >     >     any
    >     >     xml  declaration.
    >     >
    >     >     See the application class, "addAnnotedClass" call.
    >     >
    >     >     public class HockeyPondApplication extends DataApplication
    >     >     {
    >     >
    >     >             @Override
    >     >             protected Class getHomePage()
    >     >             {
    >     >                     return MyDataPage.class;
    >     >             }
    >     >
    >     >             @Override
    >     >             protected void
    >     configureHibernate(AnnotationConfiguration
    >     >     config)
    >     >             {
    >     >                     super.configureHibernate (config);
    >     >
    >     >                     // Loading the annotated Owner model
    >     >                     config.addAnnotatedClass(Owner
    >     >     <
> http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1
    <http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1>
    >     <
    http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1
    <http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1>>
    >     >
> <http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1
    <http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1>
> <http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1
    
<http://www.google.com/search?q=allinurl%3AOwner+java.sun.com&bntl=1>>>>.class);
    >     >             }
    >     >
    >     >     }
    >     >
    >     >
    >     >
    >     >     Justin Lee wrote:
    >     >
    >     >     >-----BEGIN PGP SIGNED MESSAGE-----
    >     >     >Hash: RIPEMD160
    >     >     >
    >     >     >The "Owner" you see there is the class.  You need to tell
    >     >     hibernate that
    >     >     >Owner is a hibernated class.  If you're using spring
    that's
    >     done in
    >     >     >applicationContext.xml .
    >     >     >
    >     >     >Thibaut Colar wrote:
    >     >     >
    >     >     >
    >     >     >>Hello there, I'm an experienced java developer,
    however new to
    >     >     wicket.
    >     >     >>
    >     >     >>I found wicket and think it looks great and decided
    to use
    >     it,
    >     >     though i
    >     >     >>wanted Hibernate too, so decided to use databinder.
    >     >     >>I installed databinder as explained on there site,
    and ran the
    >     >     examples
    >     >     >>locally without problems.
    >     >     >>
    >     >     >>For Info: I got databinder three days ago, i use
    java 5.0 and
    >     >     maven2,
    >     >     >>databinder uses i believe hibernate/ejb3 and wicket 1.1.
    >     >     >>
    >     >     >>Then i created my own Application using maven (as
    >     explained on the
    >     >     >>databinder site), it does compile, however as soon as i
    >     try to get
    >     >     >>something from the database (hibernate) it fails
    with this
    >     error:
    >     >     >>
    >     >     >>org.hibernate.hql.ast.QuerySyntaxException : Owner
    is not
    >     >     mapped. [from
    >     >     >>Owner order by name]
    >     >     >>
    >     >     >>"Owner" is my table name.
    >     >     >>
    >     >     >>The code i have is very very basic and short, and I've
    >     been over
    >     >     it 25
    >     >     >>hundred time, it is basically similar to the "bookmarks"
    >     >     example, yet it
    >     >     >>keeps failing with this error.
    >     >     >>
    >     >     >>I bet i am missing something obvious here, so please
    show me
    >     >     what it is :-)
    >     >     >>
    >     >     >>I put the whole code on my wiki (since it's kinda
    long in
    >     an email)
    >     >     >>
    >     >     >>http://wiki.colar.net/doku.php/databinder_issue
    >     >     >>
    >     >     >>Let me know what I'm doing wrong, so i can start
    sleeping
    >     >     again  :-)
    >     >     >>
    >     >     >>Thanks.
    >     >     >>
    >     >     >>
    >     >     >>-------------------------------------------------------
    >     >     >>This SF.Net email is sponsored by xPML, a groundbreaking
    >     >     scripting language
    >     >     >>that extends applications into web and mobile media.
    >     Attend the
    >     >     live
    >     >     >>webcast
    >     >     >>and join the prime developer group breaking into
    this new
    >     coding
    >     >     territory!
    >     >
> >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>

> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
    >     >
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
    >     <
    http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>>
    >     >     >>_______________________________________________
    >     >     >>Wicket-user mailing list
    >     >     >>Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto:Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>
    >     >     <mailto: Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto:Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>>
    >     >     >>
    https://lists.sourceforge.net/lists/listinfo/wicket-user
    >     >     >>
    >     >     >>
    >     >     >
    >     >     >- --
    >     >     >Justin Lee
    >     >     >http://www.antwerkz.com
    >     >     >AIM : evan chooly
    >     >     > 720.299.0101
    >     >     >-----BEGIN PGP SIGNATURE-----
    >     >     >Version: GnuPG v1.4.2.1 (Cygwin)
    >     >     >
    >     >
> >iD8DBQFEH2FYJnQfEGuJ90MRA8lCAKCrBs2KVJsDYtxSSsSpqMVZrz62dQCbBVNC
    >     >     >/Q5kPS0atIvjDa5NTR0pJRo=
    >     >     >=dU/Z
    >     >     >-----END PGP SIGNATURE-----
    >     >     >
    >     >     >
    >     >     >-------------------------------------------------------
    >     >     >This SF.Net email is sponsored by xPML, a groundbreaking
    >     >     scripting language
    >     >     >that extends applications into web and mobile media.
    Attend
    >     the
    >     >     live webcast
    >     >     >and join the prime developer group breaking into this new
    >     coding
    >     >     territory!
    >     >     >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
    >     >
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>>
    >     >     >_______________________________________________
    >     >     >Wicket-user mailing list
    >     >     >Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto: Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>
    >     >     <mailto:Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto: Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>>
    >     >     > https://lists.sourceforge.net/lists/listinfo/wicket-user
    >     < https://lists.sourceforge.net/lists/listinfo/wicket-user>
    >     >     >
    >     >     >
    >     >
    >     >
    >     >
    >     >     -------------------------------------------------------
    >     >     This SF.Net email is sponsored by xPML, a groundbreaking
    >     scripting
    >     >     language
    >     >     that extends applications into web and mobile media.
    Attend the
    >     >     live webcast
    >     >     and join the prime developer group breaking into this
    new coding
    >     >     territory!
    >     >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
    >     >
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>>
    >     >     _______________________________________________
    >     >     Wicket-user mailing list
    >     >     Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto: Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>
    >     >     <mailto: Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto: Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>>
    >     >     https://lists.sourceforge.net/lists/listinfo/wicket-user
    >     < https://lists.sourceforge.net/lists/listinfo/wicket-user>
    >     >
    >     >
    >
    >
    >
    >     -------------------------------------------------------
    >     This SF.Net email is sponsored by xPML, a groundbreaking
    scripting
    >     language
    >     that extends applications into web and mobile media. Attend the
    >     live webcast
    >     and join the prime developer group breaking into this new coding
    >     territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
    >     <
    http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
    >     _______________________________________________
    >     Wicket-user mailing list
    >     Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    >     <mailto:Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>>
    >     https://lists.sourceforge.net/lists/listinfo/wicket-user
    >
    >



    -------------------------------------------------------
    This SF.Net email is sponsored by xPML, a groundbreaking scripting
    language
    that extends applications into web and mobile media. Attend the
    live webcast
    and join the prime developer group breaking into this new coding
    territory!
    http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
    <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
    _______________________________________________
    Wicket-user mailing list
    Wicket-user@lists.sourceforge.net
    <mailto:Wicket-user@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to