Re: FaultFailureException

2024-11-15 Thread Markus Reich
their lives independently. So > when one of the contexts is committed and then another, you'll end up with > 2 new rows in the database. That will solve the immediate problem of > faulting, but is this the desired behavior? > > Andrus > > > On Nov 15, 2024, at 12:41 AM, Mark

Re: FaultFailureException

2024-11-14 Thread Markus Reich
itial new object > T o1Local = context.newObject(T.class); > > // manually copy data from "o1" > o1Local.setX(o1.getX()); > o1Local.setY(o1.getY()); > ... > > Having said that, what is a motivation for calling localObject(..) on a > new object? > > Andr

Re: FaultFailureException

2024-11-14 Thread Markus Reich
this flavor. Can you provide > some more context around the error. I.e. what code leads to this. > > Andrus > > > > On Nov 14, 2024, at 9:07 AM, Markus Reich > wrote: > > > > Hi, > > > > in my production environment sometimes I get the following

Re: FaultFailureException

2024-11-14 Thread Markus Reich
de leads to this. > > Andrus > > > > On Nov 14, 2024, at 9:07 AM, Markus Reich > wrote: > > > > Hi, > > > > in my production environment sometimes I get the following errors: > > > > FaultFailureException > > > > [v.4.2.1 Jun

FaultFailureException

2024-11-14 Thread Markus Reich
Hi, in my production environment sometimes I get the following errors: FaultFailureException [v.4.2.1 Jun 14 2024 07:43:08] Error resolving fault, no matching row exists in the database for ObjectId: they are not specific to a certain object and I did get it reproducible to debug it :-/ May

Re: Log4j2

2024-11-13 Thread Markus Reich
ot level is "ERROR". I wonder > how why it works. But since it does work, I guess we don't have to solve > this mystery :) > > Andrus > > > > On Nov 13, 2024, at 7:24 AM, Markus Reich > wrote: > > > > Hi, I'm using 4.2.1 > > &

Re: Log4j2

2024-11-13 Thread Markus Reich
Hi, I'm using 4.2.1 Am Mi., 13. Nov. 2024 um 12:35 Uhr schrieb Andrus Adamchik < aadamc...@gmail.com>: > Happy to hear you found a solution. So which version of Cayenne are you on? > > > On Nov 13, 2024, at 12:36 AM, Markus Reich > wrote: > > > > Thanks

Re: Log4j2

2024-11-12 Thread Markus Reich
. 2024 um 22:56 Uhr schrieb Andrus Adamchik < aadamc...@gmail.com>: > Hi Markus, > > > > > In all latest Cayenne versions (starting with 3.1), the name of the logger > should be "org.apache.cayenne.log.JdbcEventLogger". > > Thanks, > Andrus > > &g

Log4j2

2024-11-11 Thread Markus Reich
Hi, I switched from log4j properties file configuration to log4j2 xml configuration, and now I didn't get the query logs running :-( here are the dependencies concerning logging frameworks org.slf4j slf4j-api ${slf4j.version} org.slf4j slf4j-reload4j ${slf4j.version} org.slf4j

Re: ManyToMany Relation returns transient objects

2024-05-06 Thread Markus Reich
s like a regular Many-To-Many relationship that should > just work. > > On Mon, May 6, 2024 at 12:46 PM Markus Reich > wrote: > > > Hi, > > > > I'm on the latest release 4.2 of Cayenne and run in a problem when > creating > > a many to many relatio

ManyToMany Relation returns transient objects

2024-05-06 Thread Markus Reich
Hi, I'm on the latest release 4.2 of Cayenne and run in a problem when creating a many to many relationship. I had table A und table B and a joining table C which contain the ID columns of A and B The relation is defined as many to many and Dep PK is marked for A and B, further the cascading of d

Re: Problem with order when delete/inserting cascading objects

2023-04-14 Thread Markus Reich
in order for Cayenne to decide what part of the PK > to PK relationship is leading. > > On Wed, Apr 12, 2023 at 9:34 AM Markus Reich > wrote: > > > > Hi, > > > > I'm using Cayenne 4.2.RC2 and have a special problem when deleting or > > creating objects that have

Problem with order when delete/inserting cascading objects

2023-04-11 Thread Markus Reich
Hi, I'm using Cayenne 4.2.RC2 and have a special problem when deleting or creating objects that have a relation to others. To solve the problem I have to delete the FK relation on database. I'm using MariaDB 10.9. with the JDBC driver org.mariadb.jdbc 3.1.3. My model meals meals_meals_items meal

Cayenne web module deprecated

2023-01-30 Thread Markus Reich
Hi, I saw that the web module is deprecated since 4.2 I checked the DB First docu of 4.2. but there's the module still in use? What is the new way to use cayenne with J2EE apps? best regards Meex

Re: MariaDB column with auto increment

2020-10-28 Thread Markus Reich
s set there. > > log4j.logger.org.apache.cayenne.log.JdbcEventLogger = INFO > > On Wed, Oct 28, 2020 at 2:35 AM Markus Reich > wrote: > > > Hi, > > > > I'm using Cayenne 4.1. > > I have an an object A with an one to one relation to another object B, > > in object B I

MariaDB column with auto increment

2020-10-28 Thread Markus Reich
jects method and with a RefreshQuery but it stays 0? regards -- *Markus Reich* Waldweg 62 6393 St. Ulrich am Pillersee www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: [ANN] Cayenne 4.2.M2 release

2020-10-13 Thread Markus Reich
using EXISTS instead of JOIN + > DISTINCT for to-many conditions [2]. > > Enjoy M2! > > Andrus > > [1] https://cayenne.apache.org/2020/10/cayenne-42m2-released/ > [2] https://issues.apache.org/jira/browse/CAY-2684 -- *Markus Reich* Waldweg 62 6393 St. Ulrich am Pillersee www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: Oracle JNDI DataSource connections stay active

2017-05-11 Thread Markus Reich
mehow missed it in my example. I do. But the DB is MySQL, so > the query is either this, or a select from a small table: > > validationQuery: select 1; > > Andrus > > > > On May 9, 2017, at 12:11 PM, Markus Reich > wrote: > > > > no everything's do

Re: Oracle JNDI DataSource connections stay active

2017-05-09 Thread Markus Reich
Cayenne-managed transactions? > > Andrus > > > On May 9, 2017, at 11:24 AM, Markus Reich > wrote: > > > > thx Andrus, your answer give me some kind of hope :-) > > > > here are my settings > > > > > > > auth="Container&qu

Re: Oracle JNDI DataSource connections stay active

2017-05-09 Thread Markus Reich
escribe. What are the connection pool settings? > > Andrus > > > On May 8, 2017, at 10:57 PM, Markus Reich > wrote: > > > > Hi, > > > > I have a problem with our JNDI DataSource (Catalina Connection Pool). > > After a while I got a lot of active co

Oracle JNDI DataSource connections stay active

2017-05-08 Thread Markus Reich
Hi, I have a problem with our JNDI DataSource (Catalina Connection Pool). After a while I got a lot of active conns in the Pool (I can see them in via JMX), when I take a look in Oracles v$session, all sessions/conns are in IDLE state? The Problem is, that the pool thinks all sessions are active s

Re: Stacktrace

2017-05-02 Thread Markus Reich
ok, I uploaded the screenshot https://drive.google.com/file/d/0B_9GdYVKbcezelB0ZGlEb1Bmc1k/view?usp=sharing John Huss schrieb am Di., 2. Mai 2017 um 16:04 Uhr: > The screenshot didn't come through for me. > > On Tue, May 2, 2017 at 5:17 AM Markus Reich > wrote: > >

Stacktrace

2017-05-02 Thread Markus Reich
Hi, I have a question for a stacktrace I took on our prod. system. We are analyzing performance issues and found the method Invocation.equals(), when we drill down we get to the cayenne events. Is there someone who could explain those Invocation objects, is this the shared cache? I added a scree

Re: Detached Cayenne Objects

2017-04-20 Thread Markus Reich
context > is very expensive, though? It should actually be pretty cheap > memory/cpu-wise. > > As for copying objects, are you copying committed objects or copying > new/modified objects and you need the new values? > > mrg > > > On Thu, Apr 20, 2017 at 7:12 AM, Markus Reic

Detached Cayenne Objects

2017-04-20 Thread Markus Reich
Hi, I have a very special problem :-/ We want to use a cayenne object as detached object, for a simple object this works fine, as the attribute values are hosted in a value map, but we need a context when we want to use the relations too :-/ What would be the best approach? At the moment we crea

Re: SnapshotVersion

2017-03-08 Thread Markus Reich
back method you can reset the values. > More info on callbacks: > > http://cayenne.apache.org/docs/4.0/cayenne-guide/lifecycle-events.html > > Andrus > > > > On Mar 8, 2017, at 10:31 PM, Markus Reich > wrote: > > > > Hi Andrus, > > > > I have s

Re: SnapshotVersion

2017-03-08 Thread Markus Reich
solution to it? > > Andrus > > > On Mar 6, 2017, at 5:04 PM, Markus Reich > wrote: > > > > Hi, > > > > I always thought that when the content of an object changes (by commit) > the > > version gets incremented. I analyzed this a bit further an

Re: Fetching lots of objects

2017-03-06 Thread Markus Reich
Hi Maik, maybe you can use the new iterator and split the iterator for parallel computation? public static Stream asStream(Iterator sourceIterator, boolean parallel) { Iterable iterable = () -> sourceIterator; return StreamSupport.stream(iterable.spliterator(), parallel); } found at http:

SnapshotVersion

2017-03-06 Thread Markus Reich
Hi, I always thought that when the content of an object changes (by commit) the version gets incremented. I analyzed this a bit further and found sthg. which is very clear for me :-/ When I have two DataObjects with the same key/id and I change a value in one Object, I got a higher version after

Re: ObjectCache

2017-02-24 Thread Markus Reich
that "create new contexts all the time" strategy is just plain > wrong > >> for Cayenne-based applications? > >> > >> And even if I would use a longer-lived ObjectContext for something, > where > >> would that local cache get in effect? Either I hav

ObjectCache

2017-02-23 Thread Markus Reich
Hi, I'm looking for a more detailed explaination of the caching mechanism, as we are running a quite important and big web application with cayenne, I want to fine tune, because we run in some performance issues. I only found this https://cayenne.apache.org/docs/3.0/individual-object-caching.html

Re: CommitChangesToParent() <> CommitChanges()

2017-02-23 Thread Markus Reich
Hi Maik, thx for your detailed and quick answer! Ok the thing with the ChildContext was my fault, although I should know better, shame on me :-/ But anyway the result of my test is the same. What I can verifiy is that when you commit sthg to a context, the child contexts gets synched immediatetl

CommitChangesToParent() <> CommitChanges()

2017-02-22 Thread Markus Reich
Hi, I'm having some troubles understanding commitChanges() and commitChangesToParent() :-/ I've created a test case with two ObjectContexts ObjectContext context1 = runtime.newContext(); ObjectContext context2 = runtime.newContext(); then I load the same entity in both contexts PpAfkoPordershead

Re: Set timezone on connection

2015-08-03 Thread Markus Reich
a certain timezone on the java > connection. > > > > Could you show an example of this? > > > > > >> On Jul 31, 2015, at 5:18 PM, Markus Reich > wrote: > >> > >> Hi, > >> > >> we've some problems with oracle and timzone in c

Re: Set timezone on connection

2015-08-02 Thread Markus Reich
etTimeZone("GMT+0" + tz.getOffset(new Date().getTime()) / 1000 / 3600 + ":00")); 2015-07-31 19:25 GMT+02:00 Andrus Adamchik : > > We found a possibility in setting a certain timezone on the java > connection. > > Could you show an example of this? > > >

Set timezone on connection

2015-07-31 Thread Markus Reich
Hi, we've some problems with oracle and timzone in combination with daylight savings :-( When I search the web to this topic, I can see that we are not the only one having problems concerning oracle and daylight saving ;-) But it seems that there's no proper solution to fix it :-( We found a poss

Re: cayenne 4.0

2015-04-27 Thread Markus Reich
PERFECT! thx 2015-04-28 0:18 GMT+02:00 Aristedes Maniatis : > On 28/04/2015 5:57am, Markus Reich wrote: > > looks good, how to I get the dataMap? > > I have two Maps in my Configuration? > > ObjectContext -> EntityResolver -> DataMaps > > -- >

Re: cayenne 4.0

2015-04-27 Thread Markus Reich
looks good, how to I get the dataMap? I have two Maps in my Configuration? 2015-04-27 1:55 GMT+02:00 Aristedes Maniatis : > Something like: > > for (DbEntity dbEntity : dataMap.getDbEntities()) { >dbEntity.setSchema(schema); > } > > On 27/04/2015 7:35am, Marku

cayenne 4.0

2015-04-26 Thread Markus Reich
Hi, is it possible with cayenne 4.0 to use a dynamic data map? I have following requirement: I have a db scheme that is fix for all users. I habe a second dynamic scheme where the entities are equal, just the scheme names is dynamic? regards Meex

AW: Archive tables

2014-12-22 Thread Markus Reich
situation; Are you using Spring framework or some other DI framework at all? Are you wanting one ObjectContext per request-response cycle? Regards; On 23/12/14 2:13 am, Markus Reich wrote: > As I'm using cayenne in a JSP environment, where would be the best place to > create the 2nd runt

Re: Archive tables

2014-12-22 Thread Markus Reich
way to copy the existing runtime? Andrus Adamchik schrieb am Fri Dec 19 2014 at 11:24:29: > Yeah, you'd start 2 runtimes, and rename a subset of DbEntities in one of > them to add "_A". > > Andrus > > > > On Dec 19, 2014, at 11:51 AM, Markus Reich > wrote:

Re: Archive tables

2014-12-19 Thread Markus Reich
www.postgresql.org/ > [2] http://www.postgresql.org/docs/9.3/static/ddl-partitioning.html > > Regards; > > On 19/12/14 9:51 pm, Markus Reich wrote: > > ad 1., yes it's a multiuser web app > > ad 2., it's just a subset, not all tables of the schema have archive

Re: Archive tables

2014-12-19 Thread Markus Reich
verRuntime's (I assume you > are on Cayenne 3.1 / 4.0 here). One mapped to access regular tables, and > another - the archive tables. And depending on a given user state, you > allocate them an ObjectContext from the corresponding runtime. > > Andrus > > > > On Dec 1

Re: Archive tables

2014-12-19 Thread Markus Reich
the switch in the > running app? Is this for all sessions or just specific users? > > Andrus > > > On Dec 19, 2014, at 10:08 AM, Markus Reich > wrote: > > > > Hi, > > > > I need some hints for a very special issue :-) > > We have archived old ent

Archive tables

2014-12-18 Thread Markus Reich
Hi, I need some hints for a very special issue :-) We have archived old entries of our tables to shadow tables, which have exactly the same columns structure as the source table. No we need to have a possibility to switch easily between real and shadowtable. Maybe someone already is/was facing su

Re: Cayenne+jasper reports

2014-10-30 Thread Markus Reich
s I can get the connection to the database to pass it to > jasperreports? > > René > -- *Markus Reich* Waldweg 62 6393 St. Ulrich am Pillersee www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: Getting to the ServerRuntime

2014-08-20 Thread Markus Reich
ould I go about > doing something like this? > > Thanks, > > Lon > -- *Markus Reich* Waldweg 62 6393 St. Ulrich am Pillersee www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: Default values in DB

2014-06-24 Thread Markus Reich
Cayenne runtime doesn’t even care about the value of the > default. Just about the fact that it is there. DDL operations do though. > > Something to think about ... > > Andrus > >> On Jun 24, 2014, at 1:51 PM, Markus Reich >> wrote: >> >> Hmm, I think it&

Re: Default values in DB

2014-06-24 Thread Markus Reich
; On Fri, Jun 13, 2014 at 4:56 AM, Chukwuemeka Mbonu Onwukwe > > wrote: > >> Hi Markus, > >> I think it would make sense. > >> Definitely. > >> > >> Regards, > >> Emeka > >> > >> On 13 Jun 2014 09:26, "Mar

Default values in DB

2014-06-13 Thread Markus Reich
Hi, would it make sense to add in Cayennen Modeler a field to set a default value. Cayenne set's per default all fields to null, if they weren't set in Java? regards Meex

Re: Cayenne 3.0.2 - Global exception - frequent issue in my application

2014-04-08 Thread Markus Reich
ge and the information contained herein is >>> proprietary and confidential and subject to the Tech Mahindra policy >>> statement, you may review the policy at >>> http://www.techmahindra.com/Disclaimer.html externally >>> http://tim.techmahindra.com/tim/disclaimer.html internally within >>> TechMahindra. >>> == >>> == >>> >>> >> >> >> >> >> Disclaimer: This message and the information contained herein is >> proprietary and confidential and subject to the Tech Mahindra policy >> statement, you may review the policy at >> http://www.techmahindra.com/Disclaimer.html externally >> http://tim.techmahindra.com/tim/disclaimer.html internally within >> TechMahindra. >> >> >> >> >> >> Disclaimer: This message and the information contained herein is >> proprietary and confidential and subject to the Tech Mahindra policy >> statement, you may review the policy at >> http://www.techmahindra.com/Disclaimer.html externally >> http://tim.techmahindra.com/tim/disclaimer.html internally within >> TechMahindra. >> >> > > > > > Disclaimer: This message and the information contained herein is proprietary > and confidential and subject to the Tech Mahindra policy statement, you may > review the policy at http://www.techmahindra.com/Disclaimer.html externally > http://tim.techmahindra.com/tim/disclaimer.html internally within > TechMahindra. > > > > > > Disclaimer: This message and the information contained herein is proprietary > and confidential and subject to the Tech Mahindra policy statement, you may > review the policy at http://www.techmahindra.com/Disclaimer.html externally > http://tim.techmahindra.com/tim/disclaimer.html internally within > TechMahindra. > > > > -- Markus Reich Moosbach 28/2 6392 St. Jakob i.H. www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: get Connection URL at runtime

2014-02-17 Thread Markus Reich
perfect thx 2014-02-17 8:44 GMT+01:00 Andrus Adamchik : > Here is a Cayenne-agnostic way: > > String url = dataSource.getConnection().getMetaData().getURL() > > HTH, > > Andrus > > On Feb 17, 2014, at 10:41 AM, Markus Reich > wrote: > > Hi, > > >

get Connection URL at runtime

2014-02-16 Thread Markus Reich
Hi, is it possible to get the connection URL of the data-source, specified in the cayenne*.xml? regards Markus

Unchanged version of data object

2013-09-20 Thread Markus Reich
Hi, is there a way to get a unchanged (original version) of a CayenneDataObject that is changed and not commited? Or does a rollback reload data from DB? regards Markus

DB default values

2013-09-17 Thread Markus Reich
Hi, what is the best practice with db's default values? Is it good style to copy the logic into the constructor of the extended data object? Meex

Re: Optimistic Locking

2013-09-13 Thread Markus Reich
perfect, thx! 2013/9/13 Mike Kienenberger > On Fri, Sep 13, 2013 at 3:56 AM, Markus Reich > wrote: > > is there a possibility to disalbe optimistic locking for certain entites > in > > runtime?` > > e.g. the user get's info that there's a optimistic l

Optimistic Locking

2013-09-13 Thread Markus Reich
Hi, is there a possibility to disalbe optimistic locking for certain entites in runtime?` e.g. the user get's info that there's a optimistic locking problem, then the user can force the commit ignoring the optimistic lock? regards Markus

Re: Child Contexts

2013-09-05 Thread Markus Reich
> > > On Sep 5, 2013, at 5:04 PM, John Huss wrote: > > > You aren't creating the child context correctly. I don't recall the > proper > > way to do it in 3.1+ > > > > > > On Thu, Sep 5, 2013 at 8:11 AM, Markus Reich < > markus.re...@markusr

Re: Child Contexts

2013-09-05 Thread Markus Reich
odifiedObjects().size()); } and I thought the commitChangesToParent() moves the object from child to parent context? So after the commitToParent() the data is written and committed to db? regards Meex 2013/9/5 John Huss > You have to assign the result of localObject. > > John > O

Child Contexts

2013-09-04 Thread Markus Reich
Hi, I've a question concering child contexts, when I add an object to a child context with method localObject, I thought the object is really from parent to child context? But when I run the following JUnit Test, it doesn't fail, although it should? @Test public void testChildContext() {

Re: Version 3.2 - createChildContext()

2013-08-06 Thread Markus Reich
ion.web.WebUtil; > ... > CayenneRuntime r = WebUtil.getCayenneRuntime(servletContext); > > Andrus > > On Aug 6, 2013, at 4:35 PM, Markus Reich > wrote: > > Hi, > > > > I'm currently switching to 3.2 version. I now got a problem with > > ObjectContext.create

Version 3.2 - createChildContext()

2013-08-06 Thread Markus Reich
Hi, I'm currently switching to 3.2 version. I now got a problem with ObjectContext.createChildContext() as mentioned in the API docu, you should use instead CayenneRuntime.getContext(DataChannel) http://cayenne.apache.org/docs/3.1/api/org/apache/cayenne/ObjectContext.html But I'm not sure how to g

Re: Can't instantiate class but it exists

2013-07-31 Thread Markus Reich
lassLoader.java:**354) > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**423) > at java.lang.ClassLoader.**loadClass(ClassLoader.java:**356) > at java.lang.Class.forName0(**Native Method) > at java.lang.Class.forName(Class.**java:266) > at org.apache.cayenne.di.spi.**DefaultAdhocObjectFactory.** > getJavaClass(**DefaultAdhocObjectFactory.**java:102) > at org.apache.cayenne.util.Util.**getJavaClass(Util.java:658) > at org.apache.cayenne.map.**ObjEntity.getJavaClass(** > ObjEntity.java:299) > -- *Markus Reich* Moosbach 28/2 6392 St. Jakob i.H. www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: Unit Testing WebApp with 3.2M1 release

2013-07-24 Thread Markus Reich
perfect, thx 2013/7/24 John Huss > getContext() was renamed to newContext() > > > On Wed, Jul 24, 2013 at 3:51 PM, Markus Reich > wrote: > > > Hi, > > > > I'm using following code for unit testing: > > > > package db; > &

Unit Testing WebApp with 3.2M1 release

2013-07-24 Thread Markus Reich
Hi, I'm using following code for unit testing: package db; import org.apache.cayenne.ObjectContext; import org.apache.cayenne.access.DataContext; import org.apache.cayenne.configuration.server.ServerRuntime; import org.junit.After; import org.junit.Before; import org.junit.Test; public class Pa

Problem with invalidation of data

2013-06-12 Thread Markus Reich
Hi, as I mentioned in a post before, I have a process where data is changed from external. So I realized the solution from Mike where I made a table with a single field for the timestamp when the data was changed externally. Now I have a problem :-( When the data get's invalidated, it's not possib

Re: Change data by an external process (non cayenne)

2013-05-24 Thread Markus Reich
cally > invalidate it across peers. > > > > I would still approach it via query cache and cache groups though. All > that is needed is that all contexts access those objects via a query > instead of storing a direct reference. > > > > Andrus > > > > On M

Re: Change data by an external process (non cayenne)

2013-05-16 Thread Markus Reich
more detail? > > Also does your interface needs to know when an object is invalidated right > at that moment or is it enough to make the object "hollow" so that it is > refetched lazily on next access? > > Andrus > > On May 16, 2013, at 7:52 AM, Markus Reich >

Re: Change data by an external process (non cayenne)

2013-05-15 Thread Markus Reich
e group refresh events via JMS. Your external process would send such > events via ActiveMQ (that supports a bunch of command-line friendly > protocols, not just JMS) whenever the data is changed. > > Andrus > > > On May 15, 2013, at 4:28 PM, Markus Reich > wrote: > > &g

Re: Change data by an external process (non cayenne)

2013-05-15 Thread Markus Reich
t just JMS) whenever the data is changed. > > Andrus > > > On May 15, 2013, at 4:28 PM, Markus Reich > wrote: > > > Hi, > > > > is there really no better way than described here: > > http://markmail.org/message/plnaj4zj4gxrt6hk > > > > regar

Re: Prefetch paths

2013-05-15 Thread Markus Reich
> explicit. > > > > (Thinking whether it might be a good idea to add that in the future … ) > > > > On May 15, 2013, at 4:36 PM, Markus Reich > > wrote: > > > oops, sorry, it should be like this > > > > > > query.addPrefetch("pain

Re: Prefetch paths

2013-05-15 Thread Markus Reich
t; > On Wed, May 15, 2013 at 8:48 AM, Markus Reich > wrote: > > > Hi, > > > > is it possible to use wildcards in prefetch paths? > > > > e.g. query.addPrefetch("paintings.gallery"); > > > > regards > > Meex > > > -- *Markus Reich* Moosbach 28/2 6392 St. Jakob i.H. www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Change data by an external process (non cayenne)

2013-05-15 Thread Markus Reich
Hi, is there really no better way than described here: http://markmail.org/message/plnaj4zj4gxrt6hk regards Meex

Prefetch paths

2013-05-15 Thread Markus Reich
Hi, is it possible to use wildcards in prefetch paths? e.g. query.addPrefetch("paintings.gallery"); regards Meex

Re: Disabling caching for relationship queries

2013-05-09 Thread Markus Reich
/cayenne-guide/performance-tuning.html#prefetching > > Andrus > > On May 8, 2013, at 2:48 PM, Markus Reich > wrote: > > > e.g. > >SelectQuery query = new SelectQuery(MiiPickingcontainer.class); > >query.setQualifier(expression); > >

Re: Disabling caching for relationship queries

2013-05-09 Thread Markus Reich
iiPickingcontainer objects > are > > in scope. > > > > To refresh relationships when you execute a query, you need to specify > > prefetching for each relationship you care to refresh: > > > > > > > http://cayenne.apache.org/docs/3.1/cayenne-gui

Re: Disabling caching for relationship queries

2013-05-08 Thread Markus Reich
containers; MiiPickingcontainer has n MiiPickingcontainerPositions and a Position has an 1:1 order 2013/5/8 Andrus Adamchik > Which query are we talking about? Could you provide a code sample please. > > Andrus > > On May 8, 2013, at 2:37 PM, Markus Reich > wrote: > > &g

Disabling caching for relationship queries

2013-05-08 Thread Markus Reich
Hi, is there a possibility to disable the default cayenne caching mechanism used to get relational data? I already set Shared Cache to false and Number of Objects to 0, but it still doesn't work :-( regards Meex

Re: Revert object changes without rollback

2013-04-26 Thread Markus Reich
ably want to create a child context of that context > and work with a copy of the object in the child context. > > > On Wed, Apr 24, 2013 at 2:37 PM, Markus Reich > wrote: > > Hi, > > > > is it possible to revert changes of an object? I don't want to use >

Revert object changes without rollback

2013-04-24 Thread Markus Reich
Hi, is it possible to revert changes of an object? I don't want to use rollback because changes of other objects shouldn't be reverted? I know about child contexts, but my problem is, i select a collection of object, and change them in a differnt UI view and in this view I want to revert the chang

Re: Relationship

2013-04-23 Thread Markus Reich
plication identifier). This > allows comments to be attached to anything, and not just specific > table records. The comment schema and supporting java code is used > by a number of applications without having any dependencies on these > applications. > > Simplest use looks like..

Re: Relationship

2013-04-23 Thread Markus Reich
s an example of what you are trying to do with your > comment table? Some code using your desired mapping would be best. > > > On Tue, Apr 23, 2013 at 12:49 AM, Markus Reich > wrote: > > Hi, > > > > with the wonderful Cayenne Modeler it's possible to easily creat

Relationship

2013-04-22 Thread Markus Reich
Hi, with the wonderful Cayenne Modeler it's possible to easily create relations between DB entities. In my case I have a central table for comments, with a key specifying the content. No I need to map this key field to a constant literal, as I know it is just possible to join fields with fields of

Re: Convert Oracle Type NUMBER to java.lang.Boolean

2013-04-22 Thread Markus Reich
it doesn't, it is a bug that we need to fix. > > Andrus > > On Apr 22, 2013, at 4:51 AM, Markus Reich > wrote: > > Hi, > > > > I've a problem with using boolean values in my cayenne class. > > In Oracle DB the field has type NUMBER and contains only 0

Convert Oracle Type NUMBER to java.lang.Boolean

2013-04-22 Thread Markus Reich
Hi, I've a problem with using boolean values in my cayenne class. In Oracle DB the field has type NUMBER and contains only 0 or 1 as value. Now I thought I can map this to a Boolean? I came to this because it also works when I select with an Expression: ExpressionFactory.matchExp(MiiPickingcontain

Re: Webapplication with 2 ObjectContexts

2013-04-19 Thread Markus Reich
of each other. > > On Fri, Apr 19, 2013 at 4:14 PM, Markus Reich > wrote: > > I tried, but it is not possible to commit data locally in a child > context! > > I just can commitToParent :-( > > > > > > 2013/4/19 Marc A. Donis > > > >> I t

Re: Webapplication with 2 ObjectContexts

2013-04-19 Thread Markus Reich
> cayenne/DataChannel.html<http://cayenne.apache.org/docs/3.1/api/org/apache/cayenne/DataChannel.html>> > parentChannel) > > > > On 19/4/2013 21:49, Markus Reich wrote: > >> Hi, >> >> is it possible to create a second context to make an atomic update to an &g

Webapplication with 2 ObjectContexts

2013-04-19 Thread Markus Reich
Hi, is it possible to create a second context to make an atomic update to an object not disturbing the main context? e.g. in the application you can change data in a fom, there are two buttons "save" and "revert" by the way the user can add comments to the form, when he clicks add comment a popup

Re: [ANN] Cayenne 3.1B2 released

2013-02-18 Thread Markus Reich
d > confidential and subject to the Tech Mahindra policy statement, you may > review the policy at http://www.techmahindra.com/Disclaimer.html > ">http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/tim/disclaimer.html";> > http://tim.techmahindra.com/tim/disclaimer.html internally within > Tech > Mahindra. > -- *Markus Reich* Moosbach 28/2 6392 St. Jakob i.H. www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Re: select distinct ...

2012-12-06 Thread Markus Reich
e best way to do it > in cayenne? > Should I have to filter them in memory or is there another way? > Thanks -- *Markus Reich* Moosbach 28/2 6392 St. Jakob i.H. www.markusreich.at / www.meeximum.at markus.re...@markusreich.at

Probkem with SQLTemplate

2011-11-03 Thread Markus Reich
Hi community, I'm trying to receive a SELECT DISTINCT query by a SQLTemplate call, I got the right count of objects, but all objects are NULL? I've tried nearly everything, with and without #result directive ... The strange thing is, that I didn't get any exceptions thrown? Is there a way to use