Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    541

    What I said above was the case, and decided to...

    What I said above was the case, and decided to abandon the declarative approach.
    It's nice and it works, but the transaction is a bit difficult so programmatically is the only solution.

    Regarding...
  2. Replies
    2
    Views
    541

    Also, I'm trying other things and think my...

    Also, I'm trying other things and think my suspicion might be the case (I'd still like some input though).
    I added the annotation to a bean well inside the apctx and when I go to fetch the bean in...
  3. Replies
    2
    Views
    541

    Small question regarding transactions

    I have a class which manages the application context for me (it creates a new one or reuses an existing one, etc...). It also gets instances of classes from Spring via aptx.getBean(...) and issues...
  4. Thanks for your reply Marten, that's what I was...

    Thanks for your reply Marten, that's what I was thinking too.

    I did end up yanking all of the id's from each table and deleting the rows.
    It's feels like a wasteful approach, but not as incorrect...
  5. Minor Question on DELETE'ing inside of row mappers

    This is half "can it be done" and half "should it be done".

    I have a SELECT statement that links multiple tables via joins and I want to DELETE any rows that match a WHERE clause.

    My class is...
  6. Solved

    I ended up doing this:

    incomingMap.addValue("geom", "SRID=4326;POLYGON(...)", 1111);

    You have depend on Pg to cast that string to a geometry via a proper method.
  7. SimpleJdbcInsert on table with PostGIS geometries

    I have a table with two geometry columns and cannot seem to use SimpleJdbcInsert to insert some geometry info.
    [2009-10-29 11:03:13,269] [TableMetaDataProvider] [DEBUG] GetGeneratedKeys is supported...
  8. Replies
    2
    Views
    1,182

    More info: Got into the java.sql.Types (where...

    More info:

    Got into the java.sql.Types (where the values are tied to) and got these results:

    Types.DATE=91, Types.TIME=92, Types.TIMESTAMP=93

    so spring is classifying my bean property to a...
  9. Replies
    2
    Views
    1,182

    I did find this link, which uses the same methods...

    I did find this link, which uses the same methods I'm using but it's not working for me?

    http://www.java2s.com/Code/Java/Spring/SimpleJdbcInsertWithBeanPropertySqlParameterSource.htm
  10. Replies
    2
    Views
    1,182

    cannot automatically insert a date type?

    I have a bean with longs, strings and a Date field, but spring can't seem to find the sql type for a Date. I've been using java.util.Date, but I tried java.sql.Date and got the same thing.



    I...
  11. Replies
    0
    Views
    587

    Reading bean class data for DAO's

    I have regular beans (Longs, Strings, Dates, etc...) and the standard getters/setters.

    Is there an automatic way to copy the current data to an object array suitable for calls to...
  12. I think I got it. I added a new ctor to...

    I think I got it.

    I added a new ctor to override the void ctor that takes an ApplicationContext. The test class provides its own applicationContext (which I believe provides the dataSource bean...
  13. Say I have a class that cannot be instantiated by...

    Say I have a class that cannot be instantiated by a bean for other reasons, but it does instantiate beans inside of it.


    public class MyClass {

    BeanOne beanOne;
    BeanTwo beanTwo

    ...
  14. Are there any must-do's with this? I'm working...

    Are there any must-do's with this?

    I'm working with a test now and does seem like it's rolling back at all, yet I can see the transaction manager note a transaction starts and that it goes to...
  15. Replies
    2
    Views
    703

    yes, I do something like that. Just create the...

    yes, I do something like that.
    Just create the class member object, but don't instantiate it. Add in getters and settings in class A to get/set the class B object.
    In your application context,...
  16. The things left behind don't seem particularly...

    The things left behind don't seem particularly telling, it seems to be random data.

    I also don't think I was clear earlier on what's going on:
    The problem where some data isn't covered by the...
  17. Thank you for your reply. Is there a way to...

    Thank you for your reply.

    Is there a way to ensure all connections use the data source through the transaction manager? I'll try and take a look at what's left behind in the DB, maybe that will...
  18. [SOLVED, maybe]DB activity during testing with a transactionManager not rolling back?

    I've been using Spring for a few months now. I am using Spring JDBC for DB access and when I test, I extend my tests off of AbstractTransactionalJUnit4SpringContextTests and use the requisite...
Results 1 to 18 of 18