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...
Type: Posts; User: lighthousej; Keyword(s):
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...
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...
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...
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...
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...
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.
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...
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...
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
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...
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...
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...
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
...
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...
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,...
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...
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...
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...