Search:

Type: Posts; User: sbmahs; Keyword(s):

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,182

    Thanks for the info Rod, I subclassed the...

    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.
    ...
  2. Replies
    2
    Views
    1,182

    Read locks with MappingSqlQuery and Ingres

    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...
  3. Close connection when using JDBCDAOSupport, MappingSqlQuery

    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
  4. Thanks for the detailed reply, mbienstein. Like...

    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...
  5. Hi there gmatthews, I included the following...

    Hi there gmatthews,

    I included the following in my web.xml (Tomcat)



    <!-- Hibernate Filters -->
    <filter>
    <filter-name>hibernateFilter</filter-name>
    ...
  6. Close connection when using JDBCDAOSupport, MappingSqlQuery

    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...
  7. Replies
    6
    Views
    6,329

    Thanks dejanp, but key-many-to-one does not work....

    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 &#123;

    ...
  8. Replies
    6
    Views
    6,329

    Hi Costin, I've made all attributes in my...

    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...
  9. Replies
    6
    Views
    6,329

    Hi Costin, The Handler code in the Controller...

    Hi Costin,

    The Handler code in the Controller layer:



    public ModelAndView selectTablesHandler &#40;
    HttpServletRequest request, HttpServletResponse response&#41;
    throws ServletException...
  10. Replies
    6
    Views
    6,329

    Hibernate returns null for Integer properties

    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,...
  11. Replies
    1
    Views
    33,789

    batch update error using Hibernate 3

    Hi all,

    Does anyone have an idea what causes the following error?



    Batch update returned unexpected row count from update&#58; 0 actual row count&#58; 0 expected&#58; 1; nested exception is...
  12. Replies
    25
    Views
    116,937

    I found my problem, I have a hibernate context...

    I found my problem, I have a hibernate context file which lists the hbm.xml files for my model classes:


    <bean id="sessionFactory"...
  13. Replies
    25
    Views
    116,937

    Hibernate MappingException: Unknown entity

    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&#58;...
  14. Replies
    3
    Views
    4,299

    Hi, I don't see a method call ...

    Hi,

    I don't see a method call


    showForm&#40;request, response, errors, &#91;b&#93;model&#91;/b&#93;&#41;;

    but I put the parameter on the request object as such:
  15. Thanks Katentim, I've just checked the docs...

    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
  16. Trapping bind errors to display as failed validation error

    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...
  17. Sorry, I omitted some info to set the stage for...

    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...
  18. Trapping bind errors to display as failed validation error

    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...
  19. Correct place to display persistence related errors

    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. ...
Results 1 to 19 of 19