It actually uses JPA for annotations, which then forwards the actual implementation to hibernate in this case.

Im not sure if you can easly switch from JPA to .hbm . Since JPA are annotation driven..

Are there many mapping files? You could perhaps try to fiddle with this setting, in persistence.xml :

       <properties>
           <!-- Scan for annotated classes  -->
           <property name="hibernate.archive.autodetection"
               value="class" />

           <!-- SQL stdout logging -->
           <property name="hibernate.show_sql" value="true" />
           <property name="hibernate.format_sql" value="false" />
           <property name="use_sql_comments" value="false" />


           <!--    Connecting to mySQL -->
           <!--
Maybe like this:

<*property name="hibernate.archive.autodetection*" value="hbm" /> <*property

?

Does it work?

*

Piller Sébastien wrote:
One little question:

why isn't there some *.hbm.xml? How is the mapping between pojo and db done?

Is it possible to use *.hbm.xml with this exemple? They are already writted, and I would like to use them?

Could you point me to a direction?

Thanks!

Nino Saturnino Martinez Vazquez Wael a écrit :
No problem, please say if you have any RFE's:)

I know that packages arent being generated but dont know howto do it any better when doing a multi project archetype...

Piller Sébastien wrote:
It works very well, thanks ;)


Igor Vaynberg a écrit :
i think this maven archetype might be what you are looking for

http://www.wicketstuff.org/teamcity/viewType.html?buildTypeId=bt17

-igor

On Tue, Jun 24, 2008 at 8:29 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote:
Hello guys,

I'm trying to get Wicket use Spring & Hibernate correctly. I don't know
Spring very well, so I probably made some great errors.

I have some question for the beginning:

- I saw a "SpringWebApplication" in wicket. Does my app must extends this class or is it possible to use spring & an AuthenticatedWebApplication? - Is it possible to use spring with filters or do I need to use servlets?
- Does anybody have a quickstart project that runs with Spring 2.5,
Hibernate 3.2 and Wicket 1.3.1?


Thanks you

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to