Search:

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

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    8
    Views
    11,506

    It will scan the directiory(ies) for hbm.xml...

    It will scan the directiory(ies) for hbm.xml files and read them the same way as if you had explicitly listed them. I don't think performance is an issue.
  2. Replies
    10
    Views
    4,456

    Whenever you declare a BigDecimal, initialize it...

    Whenever you declare a BigDecimal, initialize it like this:


    private BigDecimal amount = new BigDecimal("0.00");

    and rerun your test.
  3. Replies
    10
    Views
    4,456

    Nothing to do with the 0 you pass. It's just...

    Nothing to do with the 0 you pass.
    It's just that you call it with an int parameter


    BigDecimal
    public BigDecimal(int val)
    Translates an int into a BigDecimal. The scale of the BigDecimal...
  4. Replies
    10
    Views
    4,456

    I guess the problem is in your java code and not...

    I guess the problem is in your java code and not the db columns.

    Since the only code sample you give is the field declaration I only can say that the following line

    initializes a BigDecimal...
  5. Replies
    8
    Views
    11,506

    Remove completely form your...

    Remove completely <mapping resource...> form your set-up
    When you use mappingDirectoryLocations in LocalSessionFactoryBean you don't need to specify any other resources explicitly.

    The...
  6. Replies
    2
    Views
    2,394

    I came across the same issue recently when...

    I came across the same issue recently when upgrading Hibernate and found this problem with javassist.

    Using instanceOf solves the problem, however it breaks the symmetry contract of the method: ...
  7. Replies
    8
    Views
    11,506

    MappingResources can only receive paths relative...

    MappingResources can only receive paths relative to your classpath.

    MappingDirectoryLocations, MappingLocations etc (see LocalSessionFactoryBean javadoc) receive parameters of type Resource. You...
  8. Replies
    8
    Views
    11,506

    Try this : In your session factory...

    Try this :

    In your session factory configuration set



    <property name="mappingDirectoryLocations">
    <list>
    <value>/conf</value>
    </list>
  9. Replies
    8
    Views
    962

    I think another question you should ask yourself...

    I think another question you should ask yourself is "why is the other process locks data? Is there a good reason for doing this, and if not can I lower the isolation level of the other transaction...
  10. I mean conceptually, it must be unique. Even if...

    I mean conceptually, it must be unique. Even if your primary key is another field, the user authenticates with the username. This is the "key" the framework uses to decide which user is requesting...
  11. @Luke I checked it again and you are right,...

    @Luke
    I checked it again and you are right, there is no side-effect.

    But long ago -possibly in the Acegi years- I came accross the following issue:

    In an intranet app, there was an...
  12. I have to make a point on this. I feel that one...

    I have to make a point on this.
    I feel that one should use this method only for authentication purposes.
    I tried some time ago to use it to check for duplicate usernames as well when registering...
  13. Replies
    2
    Views
    16,112

    You checked which jar file? In spring 3 the...

    You checked which jar file?
    In spring 3 the whole jar structure has been re-organized. There is no all-in-one spring.jar as before. You have to pick what you need.

    DataAccessException is in...
  14. When using "select" in HQL, hibernate considers...

    When using "select" in HQL, hibernate considers it a projection query and your find method returns a List of Object[] not of User objects. Your jsp then uses the dot notation on an array.
  15. Replies
    2
    Views
    1,018

    You need to display...

    You need
    <form:errors path="name"/> to display the error messages
  16. Replies
    2
    Views
    630

    see...

    see http://forum.springsource.org/showthread.php?t=85696
  17. Replies
    3
    Views
    2,298

    A simple approach is to prefix all...

    A simple approach is to prefix all controller-handled urls under a path element which is not related to any directory structure e.g. "services"
    (instead of "oap" which part of your webapp...
  18. Replies
    4
    Views
    1,779

    Since you are a starter keep in mind that all...

    Since you are a starter keep in mind that all old-style controllers are now deprecated in spring 3 in favor of the new annotated controllers. In fact BaseCommandController and all inheriting from it...
  19. Replies
    1
    Views
    701

    In some cases Spring can configure the underlying...

    In some cases Spring can configure the underlying layer for better performance when a transaction is declared as read-only. When you use Hibernate for example, it sets the flush mode to FLUSH_NEVER...
  20. Replies
    3
    Views
    600

    There is an improvement request in jira regarding...

    There is an improvement request in jira regarding this -but with low priority. Seems to be added in 3.1.

    http://jira.springframework.org/browse/SPR-5025
  21. Replies
    3
    Views
    789

    Ah, you are using JPA, so you are right, select...

    Ah, you are using JPA, so you are right, select is not optional like HQL.
    Check to see what your find method returns. I guess it is a list of Object[]. In that case your get(0) returns an array...
  22. Replies
    3
    Views
    789

    Remove "SELECT s" from your query.

    Remove "SELECT s" from your query.
  23. Have you considered using a manual flush in the...

    Have you considered using a manual flush in the hibernate session just after the first deletion? This overrides the write-behind behaviour that hibernate applies.
  24. Replies
    6
    Views
    1,044

    Yes and no. In fact to check your case I changed...

    Yes and no. In fact to check your case I changed this mapping:


    <prop key="manager/admin/hotel/report/users">userListController</prop>

    to


    <prop...
  25. Replies
    6
    Views
    1,044

    They are definitely still supported. I'm also in...

    They are definitely still supported. I'm also in spring 3 and have no issue on this. Are you sure you have not misspelled something on the mappings?
Results 1 to 25 of 113
Page 1 of 5 1 2 3 4