Thanks for the info Rod,
I subclassed the DriverManagerDataSource class and overrode the getConnection class to execute a set command on the connection before passing it on. It works very well.
...
Type: Posts; User: sbmahs; Keyword(s):
Thanks for the info Rod,
I subclassed the DriverManagerDataSource class and overrode the getConnection class to execute a set command on the connection before passing it on. It works very well.
...
Hi all,
I'm using MappingSqlQuery subclasses to fire SQL statements to the database and map the result sets to a model object. However, Ingres is set up to lock rows read by a select. This...
Thanks again for the detailed reply Michael. It certainly makes things a lot clearer for myself and others looking for info on pooling implementations.
Regards,
Stefan
Thanks for the detailed reply, mbienstein. Like you, I am also new to Spring.
At some stage I should also change to a subclass of PoolableConnection.
Regarding the dependency injection, does...
Hi there gmatthews,
I included the following in my web.xml (Tomcat)
<!-- Hibernate Filters -->
<filter>
<filter-name>hibernateFilter</filter-name>
...
Hi all,
I am using the Spring JdbcDaoSupport to enable my application to connect to different, user configured data sources. I have a DAO class
public class IngresMonitorDao extends...
Thanks dejanp, but key-many-to-one does not work.
The composite is so simple that I did not post it, but here it is:
public class TableInDatabaseId implements Serializable {
...
Hi Costin,
I've made all attributes in my model classes and composite ID classes protected, but it does not solve the problem. Note that the common AbstractModelObject does not declare any...
Hi Costin,
The Handler code in the Controller layer:
public ModelAndView selectTablesHandler (
HttpServletRequest request, HttpServletResponse response)
throws ServletException...
Hi all,
I have a situation where model classes contain a list of related model classes etc. 2 and more levels deap. When I load a top level model object it's attributes are correctly populated,...
Hi all,
Does anyone have an idea what causes the following error?
Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1; nested exception is...
I found my problem, I have a hibernate context file which lists the hbm.xml files for my model classes:
<bean id="sessionFactory"...
Hi all,
I've got a system with 10 working mappings. when I tried to create the latest one I get the following error when trying to load or save a persistent object to it:
Unknown entity:...
Hi,
I don't see a method call
showForm(request, response, errors, [b]model[/b]);
but I put the parameter on the request object as such:
Thanks Katentim,
I've just checked the docs and both the built-in CustomNumberEditor and CustomDateEditor have a parameter to allow empty fields! Lovely :D
Regards,
Stefan
Hi,
I've successfully created validators to validate form input but I have one small issue: When a field that maps to a numeric field on command object is left blank or alfa data is entered, the...
Sorry, I omitted some info to set the stage for the question:
I have a subclass of SimpleFormController that uses formBackingObject to get the data to display,
it has a validator that...
Hi,
I've successfully created validators to validate form input but I have one small issue: When a field that maps to a numeric field on command object is left blank or alfa data is entered, the...
Hi,
I'm looking for advice as to the correct place to catch and display persistence related errors to the user.
I've got a working application with views, controllers, DAO and model layers. ...