Search:

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

Page 1 of 2 1 2

Search: Search took 0.05 seconds.

  1. Replies
    8
    Views
    1,544

    See for example ...

    See for example http://oldwww.springframework.org/downloads/nightly/ or use the CVS server http://sourceforge.net/cvs/?group_id=73357.

    Note: As I'm not related to the Spring dev team, I don't...
  2. Replies
    5
    Views
    14,154

    Re: May have found my solution

    This is the way we're doing it - without any headaches. The Java syntax is a bit weird at the beginning but one gets used to it :).

    Erik
  3. Replies
    8
    Views
    10,492

    I found the following:...

    I found the following: http://bugs.mysql.com/bug.php?id=4718

    It seems that MySQL had an issue with LIMIT - could you check that your MySQL version contains a correction of the issue?

    Erik
  4. Maybe you could evict (see Hibernate...

    Maybe you could evict (see Hibernate documentation) the data you read from the session.

    Erik
  5. Replies
    8
    Views
    10,492

    That's a bit strange... I would need the...

    That's a bit strange...

    I would need the Hibernate debug trace to be able to say more. Can you provide it for the case where pagination is active?

    Other question: what happens when you...
  6. Replies
    8
    Views
    10,492

    Re: hibernate pagination

    One thing I don't understand is that the statement the exception is complaining about does not contain anything that is related to paginating the result.

    Could you post the SQL statements...
  7. Re: y my gethibernatetemplate().find("") return nu

    print null;[/quote]
    Can't remeber having seen something like that. Could you post a bit more information - for example the mapping of user and the SQL statement hibernate generates?

    Erik
  8. Replies
    3
    Views
    1,276

    I guess that the answer is that Spring only...

    I guess that the answer is that Spring only provides direct access to the most commonly used features of Hibernate - if you want more, you have to go to the Hibernate level, which is accessible in...
  9. Hi, There seem to be some issues with...

    Hi,

    There seem to be some issues with incompatible CGLIB (also asm) libraries between Hibernate 3.1 and Spring 1.2.4.

    As I haven't being using this configuration myself I can only give the hint...
  10. Re: using spring and hibernate for an SQL update query..??

    I must first correct biot023: it is possible to issue updates in HQL - since Hibernate 3.0 at least.

    Back to the actual question - you'll have to write a "beast" like:
    ...
  11. Replies
    4
    Views
    2,522

    Hi, I googled around but found nothing. ...

    Hi,


    I googled around but found nothing.

    Maybe you can post the question at a Java forum.

    Erik
  12. Replies
    6
    Views
    3,271

    Hi, Now you know why they always say: define...

    Hi,


    Now you know why they always say: define constants instead of using hard coded numbers (or strings etc.)

    :D & :wink:

    Erik
  13. Hi, Not sure my explanation will match your...

    Hi,


    Not sure my explanation will match your question as you provided very little information about the context of your problem, but Hibernate 3.0 has changed the default settings for lazy...
  14. Replies
    4
    Views
    2,522

    Hi, It seems one method is horribly long....

    Hi,


    It seems one method is horribly long. Code length for a method must be less than 65535 bytes (google for "Caused by: java.lang.ClassFormatError: Invalid method Code length" you'll find more...
  15. Re: MappingSqlQuery with parameters(Simple question)

    Hi,


    How about simply adding "%" in front of and at the end of the parameter before passing it to the query? This is the way we did it - and I think this is the "right" way to do it.

    Erik
  16. Hi, The standard pattern for that is the DAO...

    Hi,

    The standard pattern for that is the DAO (Data Access Object) pattern. This fits perfectly well with Spring.

    I would recommend that you have a look at the samples delivered with Spring and...
  17. Replies
    3
    Views
    1,096

    Re: Spring with standalone app

    Hi,


    There is nothing special about that. We've written quite a few of those "beasts". What kind of problem do you have/expect?

    Erik
  18. Replies
    10
    Views
    4,702

    Hi, I have to agree - I would be...

    Hi,



    I have to agree - I would be interested what good reason the Hibernate guys have for this rather unpleasant/weird behavior.

    Erik
  19. Replies
    2
    Views
    883

    Re: Help with PropertyPlaceholderConfigurer

    Hi,



    OK - :-).

    Concerning your problem: a XmlBeanFactory is not powerful enough for your purpose. You need (for example) a ClassPathXmlApplicationContext - see below.


    ApplicationContext...
  20. Hi, First of all: though I would consider...

    Hi,

    First of all: though I would consider myself an experienced user of Spring+Hibernate, I'm only a user and haven't dived into the technical depth of both products. So consider my explanations...
  21. Hi, FYI: I repeated your test (not using...

    Hi,



    FYI: I repeated your test (not using annotations - but this does not seem to be important) - and got the same error. I then adapted the test a bit:
    * I used...
  22. Replies
    9
    Views
    1,543

    Hi, The solution I propose (see below) is...

    Hi,

    The solution I propose (see below) is quite similar to jbetancourts - with a few differences:

    In the application context:

    ...
    <bean id="placeholderConfig" ...
  23. Replies
    9
    Views
    1,543

    Hi Max, I agree with jbetancourt:...

    Hi Max,

    I agree with jbetancourt: PropertyPlaceholderConfigurer is probably the right mechanism for your purpose.

    Very short introduction to it: it allows you to define variables in the form...
  24. Replies
    8
    Views
    1,117

    Hi, Things are much more complex than I...

    Hi,




    Things are much more complex than I first thought. I fear it will be quite difficult to help you without knowing more about the architecture of your application...

    Erik
  25. Replies
    9
    Views
    1,543

    Re: dynamic property value in beans

    Hi,



    The answer is probably yes. But a few questions remain. For example: how do you want to define that A (respectively the first element of MyList) should be returned when name is Max, B...
Results 1 to 25 of 44
Page 1 of 2 1 2