Ups, you´re completely right. Next time I should read the complete thread, not only the last messages.
Type: Posts; User: roman; Keyword(s):
Ups, you´re completely right. Next time I should read the complete thread, not only the last messages.
Is it possible to define the mapped classes in the properties file? If not:
I didn´t try this but I think it should work:
1. Subclass...
When using annotations, you must use:
org.springframework.orm.hibernate3.XXX
and
org.hibernate instead of net.sf.hibernate
Example configuration:
----------------------------------------
I know nothing about Eclipse plugin development or the way SpringIDE is working. So if I´m wrong, just ignore me (or give me a hint) :-)
Sure? I guess SpringIDE doesn´t need to know anything...
SpringIDE reports "No setter found for property 'xxx' in class 'yyy' when class yyy is using a generic type:
Example:
public abstract class AbstractCrudDaoHibernate<E extends DomainObject>
...
I´m using this configuration for my unit tests:
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property...
J2EE is one thing, OO and the application layout another. IMHO, J2EE and other technologies shouldn´t dictate your DESIGN. Even in an middle sized app with 50 DAOs in one xml file, this file quickly...
You should also consider to break your xml file in vertical slices.
So you could have:
dataSource.xml -> Database connection, Hibernate, etc
globalConfig.xml -> messages, PropertyPlaceholders,...
You should take a look at DWR:
http://www.getahead.ltd.uk/dwr/
DWR allows you to access your spring managed beans with javascript. The boiler plate code is handled by DWR.
It´s working fine...
There´s a small typo in the URL (trailing dot).
corrected: https://springmodules.dev.java.net/
Hi all!
Let´s say I have three xml files:
- app-servlet.xml
- appContext.xml
- dataContext.xml
appContext.xml and dataContext.xml are listed in the context-param "contextConfigLocation" in...
3. You will need to have this
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/*Context.xml</param-value>
</context-param>
<listener>
...
GREAT TOOL! :D Thank you!
I´ve implemented an incremental search tool. Works perfect! While typing I see the possible matches which are beginning with the string.
1. Do you have any experience...
The instances of your bean are different and are depending on an attribute in the session. Right?
What i would do:
Create a custom factory for your bean and inject this factory (not the bean)...
Hi all!
I want to devide my app into several independent parts and each part should define it´s own handler mapping. The main handler should then delegate to the handlers.
My current setup:...