cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Bruegge <daniel.brue...@googlemail.com>
Subject possible to modify table name dynamically when inserting via newObject?
Date Wed, 11 Jan 2012 19:17:04 GMT
Hi,

I know, that it is possible with SQLTemplate to define pure SQL
queries. I use them when querying. Inserting is always done on my side
via context.newObject(Object.class) (see
http://cayenne.apache.org/doc30/api/org/apache/cayenne/access/DataContext.html#newObject(java.lang.Class)).

What I was wondering if it is possible to modify the used underlying
table name when inserting objects via newObject? So that I can for
example insert the object in another table with the same schema.

Thanks & regards

Daniel

-- 
DANIEL BRUEGGE
LOTHSTR. 78A, D-80797 MUNICH
T: +49 (0) 89 63 85 34 28
M: +49 (0)176 23 23 04 30
E: DANIEL@BRUEGGE.EU
X: https://www.xing.com/profile/Daniel_Bruegge
L: http://www.linkedin.com/in/bruegge

Mime
View raw message