You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Piller Sébastien <pi...@hmcrecord.ch> on 2008/06/24 17:29:16 UTC

Trying to use spring with wicket

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Trying to use spring with wicket

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
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 
>>>> <pi...@hmcrecord.ch> 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: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>>     
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>   
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

-- 
-Wicket for love

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Trying to use spring with wicket

Posted by Piller Sébastien <pi...@hmcrecord.ch>.
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 
>>> <pi...@hmcrecord.ch> 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: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>     
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Trying to use spring with wicket

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
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 
>> <pi...@hmcrecord.ch> 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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

-- 
-Wicket for love

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Trying to use spring with wicket

Posted by Piller Sébastien <pi...@hmcrecord.ch>.
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 <pi...@hmcrecord.ch> 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Trying to use spring with wicket

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <pi...@hmcrecord.ch> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org