Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Validator: @OneToMany reference not fetched

    I'm tring to valdate a domain object. In order to validate it I need to get the size of a Set that it contains. This is a short example:


    public class Obj{
    ....
    ...
  2. thank you! Now the job is done in 90 seconds...

    thank you!

    Now the job is done in 90 seconds on a scrap computer :) (instead of 1500 seconds of the first attempt).

    The changes you suggested in previous post save about 20 seconds.

    Thank...
  3. oooh now I've understand (session.flush() ->...

    oooh now I've understand (session.flush() -> em.flush(). I change my code into:


    @PersistenceContext(unitName="persistenceUnit")
    EntityManager em;
    ...
  4. Thank you for your answer! I'm using Hibernate...

    Thank you for your answer!

    I'm using Hibernate in order to get an iterator that allows moving around results. I don't know how to do it with entity manager! But in the original attempt I didn't...
  5. Spring 3.1 + Spring Data JPA 1.0.2 + Hibernate 3.6.9 Slow Transaction

    I'm facing a problem with a new project. I have a scheduled task (@Scheduled) that keep synchronized two tables of different datasources.

    The source table is on a mssql server and the destination...
  6. Solved putting in web.xml: ...

    Solved putting in web.xml:



    <filter>
    <filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
    ...
  7. Spring Data Jpa with Multiple Datasources

    Hi!

    I'm trying to use 2 datasources on my project.

    With one entityManager everything goes ok, but when I add a second one I get this Exception:

    ...
  8. Remote entity relationship with Spring and JPA

    I have 2 databases. The first one is the db of our company ERP and the second one the db of my app.

    I need to working in my app with synched customers table data from ERP database. Now I synch the...
  9. Replies
    4
    Views
    751

    I think it's to maintain the small size of...

    I think it's to maintain the small size of package..
  10. Replies
    4
    Views
    751

    I don't know tinyspring.. But if you want to take...

    I don't know tinyspring.. But if you want to take a look, I'm using http://code.google.com/p/roboguice/ to inject daos and services.

    And if you wan't save some line of code take a look at...
  11. Replies
    2
    Views
    782

    I've solved. I save the byte[] of the response...

    I've solved.

    I save the byte[] of the response by pass a ByteArrayHttpMessageConverter to the RestTemplate and then streaming the result of restTemplate.exchange(url, HttpMethod.GET,...
  12. Replies
    2
    Views
    782

    Handle big HttpEntity response

    Hi.

    I make a call to my restful controller that receive a very big amount of json data.

    How can I store this json into a file? I want to read in sequence each item using custom jackson object...
  13. Replies
    1
    Views
    628

    I would ask the same thing and reading the forum...

    I would ask the same thing and reading the forum i find your post!

    In my old app I save the response to a FileOutputStream, then I created a custom Jackson Object mapper to get element by element,...
  14. Android SSL Client Authentication certificate: SSL handshake terminated: ssl=0x182c70

    I'm developing an android application on v13 target sdk and I'm trying to secure connection from android device to my tomcat server v6 with SSL enabling also clientAuth. I'm using self-signed...
  15. No.. I'm sorry

    No.. I'm sorry
  16. Thank you!!! Byeee :)

    Thank you!!!

    Byeee :)
  17. Ok thank you. I solved using an input type...

    Ok thank you.

    I solved using an input type hidden in view where I put the SimpleClassName of the object in createForm/updateForm.

    Then I've implemented:



    @ModelAttribute("item")
    public...
  18. Thank you very much! The explanation is very...

    Thank you very much! The explanation is very clear.

    But I have not understand how can I get the correct type of the object returned by the view in public Item getItemInstance().

    Do I need to...
  19. Bind abstract domain object to concrete class in controller

    Hi!

    I have an abstract domain class called Item extended by many class.

    I wanto to have only one Dao / Service / Controller that handle all classes that extend Item.

    My dao and my service...
  20. no one has ever had this problem? :confused:

    no one has ever had this problem? :confused:
  21. the cause is not that. nothing has changed..

    the cause is not that. nothing has changed..
  22. I've found that when maven compile the project I...

    I've found that when maven compile the project I get this WARNING:

    advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied

    Could it be a cause? :)
  23. Thank you for your reply! I've omitted to...

    Thank you for your reply!



    I've omitted to say that in this project there are two DBs. One mysql db and one mssql. But I'm interested in mysql db!


    Let me explain more...

    Trying to to do...
  24. Thrown JpaSystemException instead of DuplicateKeyException

    Hi everyone.

    I'm in troubles with DataAccessException handling.

    When an uniquess key constraint is violated I got an JpaSystemException, and not a DuplicateKeyException!

    I found some thread...
  25. Replies
    0
    Views
    223

    Thread Synchronization

    Hi everyone!

    I have developed a Spring MVC application that generates report given the inserted data. This reports contains also several images. I've also a button called "checked" that when is...
Results 1 to 25 of 57
Page 1 of 3 1 2 3