Re: Wicket-Spring Hibernate dao

2011-03-02 Thread ookpalm
Thanks everyone. I will go for using the new operator for my domain object since there is no simple way to inject and it is not really nescessary to inject bean to object in this case. -- View this message in context:

Re: Wicket-Spring Hibernate dao

2011-03-02 Thread James Carman
I believe you want to look into using a factory to create your cats. You can inject DAOs and whatever you want into your factory. The factory would be a spring-managed bean, but the entities wouldn't. On Wed, Mar 2, 2011 at 10:36 PM, ookpalm ookp...@gmail.com wrote: Thanks everyone. I will go

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Igor Vaynberg
you should be doing cat=new cat() anyways. i assume the default cat is a singleton in your application context, in which case you do not want it to be persisted anyways. -igor On Tue, Feb 22, 2011 at 1:59 PM, ookpalm ookp...@gmail.com wrote: Hi I have a question about wicket spring. My

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Dan Griffin
I think that it happened because spring wrapped a proxy around your bean, and then hibernate couldn`t recognize its class and which table it should look for. I`m not sure if you can get around it, but I agree with Igor that you should create your domain objects with new, rather than inject

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Nivedan Nadaraj
Hi, Is your DAO marked with @Repository annotation? e.g. *@Repository(myDao)* public class SomeDAO extends HibernateSessionDao implements IDao { Plus in your client you need that @SpringBean,((Spring would inject it) In my case I use a Service to get to the DAO - May not be necessary

Re: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-18 Thread Martijn Dashorst
The interceptor can be safely removed. It was necessary for the project I was working on, but you probably don't need it. JDBC connection settings are best done through a DataSource and specified at the container level instead of programmatically. Martijn On Mon, Nov 16, 2009 at 6:38 PM,

Re: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-18 Thread Martijn Dashorst
The interceptor can be safely removed. It was necessary for the project I was working on, but you probably don't need it. JDBC connection settings are best done through a DataSource and specified at the container level instead of programmatically. Martijn On Mon, Nov 16, 2009 at 6:38 PM,

Re: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-17 Thread James Carman
On Mon, Nov 16, 2009 at 12:38 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Also how would one move the configuration of the jdbc connection to code?  It is desirable to db connection information reside at the server level so when deploying code from dev to stage to production, you

RE: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-17 Thread Loritsch, Berin C.
I'm not sure the purpose of the interceptor, but until you have a need to extend and use it, you can use the org.hibernate.EmptyInterceptor class instead of creating your own. I have had no problems with using that class. -Original Message- From: Jeffrey Schneller

Re: wicket+guice+hibernate

2009-03-18 Thread francisco treacy
http://www.cafesolo.com.ar/2008/10/22/wicket-guice-warp-and-hibernate-a-quickstart-project/ francisco On Wed, Mar 18, 2009 at 4:57 PM, srividh...@yahoo.com wrote: I am a newbie to wicket and guice . I would like to look at some examples of the trio before starting to use them for my

Re: Wicket/Salve/Hibernate Examples

2009-01-22 Thread Tauren Mills
Francisco, Thanks! Actually, I was just reading that post of Igor's which prompted my question. But I was hoping there might be an integrated sample app (or maven archetype would be even better!) to experiment with to save me the time of putting it all together. Anyone else know of any samples

Re: Wicket/Salve/Hibernate Examples

2009-01-22 Thread francisco treacy
http://code.google.com/p/elephas/source/browse/#svn/trunk for instance, http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/model/Blog.java francisco On Thu, Jan 22, 2009 at 6:09 PM, Tauren Mills tau...@tauren.com wrote: Francisco, Thanks! Actually, I was just

Re: wicket and hibernate

2008-10-02 Thread Flavius
You said you were using annotations. Just read chapter 1 of the hibernate annotations docs http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/#setup-configuration create a class called HibernateUtil.class (or you can call it Fluffy.class, but that's not as descriptive) and

Re: wicket and hibernate

2008-10-01 Thread Piller Sébastien
Hi, Have a look at http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite overseastars a écrit : Hi I just wanna know how to integrate wicket and hibernate?? can someone give me a simple example even just one entity is ok. I have my entities(hibernate annotation) ready and

Re: wicket and hibernate

2008-10-01 Thread Flavius
Here's how I do it. I have my wicket layer call a service layer, which calls a DAO. I'm not a big fan of a lot of layers and I like to keep my projects flat. So, if you want a list of users on a page, for example, you can use any of the canned wicket tables. Those are pretty nice. I use

Re: wicket and hibernate

2008-10-01 Thread overseastars
Hi Flavius Very impressive. Many thanks. I learnt a lot. But I still have a question. For example, I know I should use Dao to access the persistence layer. Let's say I have 2 entities which means two classes in java. I put them in the source folder. Once I start the server, I guess they wont