Running more than 1 Entity Manager per JVM

2014-03-10 Thread Todd Nine
Hi guys, I have a strange use case I can't get any help with in the user mailing list. I'm hoping you guys can give me a hand. I'm the author of this plug in. https://github.com/riptano/hector-jpa/ This is not an XA data store, and doesn't participate in transactions. I'm attempting to help

Help with debugging DynamicCompositeType (Sylvain)

2011-08-08 Thread Todd Nine
Hi guys, I'm working on the final updates to hector-jpa for 0.8.2, and I've run into a bit of an issue. Now that forward and reverse comparators are natively supported, order by clauses on the indexes are natively sorted in Cassandra. I'm having some issues with my tests, here is my scenario.

[jira] [Commented] (OPENJPA-1982) StateManager.fetchObjectId() does not correctly cascade when using a non JDBC store

2011-04-19 Thread Todd Nine (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13021803#comment-13021803 ] Todd Nine commented on OPENJPA-1982: Sure thing. I'll try to get to it sometime

[jira] [Created] (OPENJPA-1982) StateManager.fetchObjectId() does not correctly cascade when using a non JDBC store

2011-04-17 Thread Todd Nine (JIRA)
: OpenJPA Issue Type: Bug Components: kernel Affects Versions: 2.1.0 Environment: Ubuntu Sun java 10.6 Reporter: Todd Nine Priority: Blocker Test case https://github.com/riptano/hector-jpa/blob/compositeentityid/src/test/java/com/datastax

Possible bug in Statemanager.fetchObjectId() with Entity Id fields in composite id and application assigned identities? Appears to be flush cascade related.

2011-04-13 Thread Todd Nine
Hi guys, I've read the JPA spec several times, as well as section 4.2 in the 2.1.0 documentation and I believe I've mapped this relationship correctly. https://github.com/riptano/hector-jpa/blob/master/src/test/java/com/datastax/hectorjpa/bean/Observe.java I'm hitting what seems to be a bug in

Re: Possible bug in Statemanager.fetchObjectId() with Entity Id fields in composite id and application assigned identities? Appears to be flush cascade related.

2011-04-13 Thread Todd Nine
Hi all, Because this has broken my build I've started fixing this issue on a separate branch. You can view this branch here. https://github.com/riptano/hector-jpa/tree/compositeentityid On Thu, 2011-04-14 at 12:42 +1200, Todd Nine wrote: Hi guys, I've read the JPA spec several times

Re: StateManager setup with embedded entity handling in Cassandra plugin

2011-04-08 Thread Todd Nine
that). You noted that if you reverse 1 and 2 the problem goes away. What line numbers in the test do 1 and 2 correspond to in your test? Thanks, Rick On Thu, Apr 7, 2011 at 10:16 PM, Todd Nine t...@spidertracks.com wrote: Cancel that. I managed to show the exact same

Re: StateManager setup with embedded entity handling in Cassandra plugin

2011-04-07 Thread Todd Nine
. Hopefully my test makes the problem I'm having clear. -- todd SENIOR SOFTWARE ENGINEER todd nine| spidertracks ltd | 117a the square po box 5203 | palmerston north 4441 | new zealand P: +64 6 353 3395 E: t...@spidertracks.co.nz W: www.spidertracks.com On Thu, 2011-04-07 at 20:06

Re: StateManager setup with embedded entity handling in Cassandra plugin

2011-04-07 Thread Todd Nine
and 2, I don't get the issue. Hopefully this test demonstrates the problem. On Fri, 2011-04-08 at 14:02 +1200, Todd Nine wrote: Hey Rick. I'm attempting to re-create it in my test here, but I'm not having any luck. It's something specific in our app. https://github.com/riptano/hector

StateManager setup with embedded entity handling in Cassandra plugin

2011-04-06 Thread Todd Nine
Hi all, I'm having a very difficult time working with embedded entities in Cassandra. Specifically, this is the case where I'm getting very strange behavior.Em = Entity Manager. em1 created em1 begin transaction em 1 load User entity , the embedded Address object is correct. em 1 complete

[jira] [Commented] (OPENJPA-1744) Support JDO

2011-03-31 Thread Todd Nine (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-1744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13014248#comment-13014248 ] Todd Nine commented on OPENJPA-1744: I've built the Cassandra JDO plugin on github

Help with maven enhancment and circular references on test compilation for plugin

2011-03-29 Thread Todd Nine
Hi all, I'm using the new meta query model in my testing of my plugin. We're also using maven. Unfortunately I can't seem to invoke the metadata generation plugin during the generate-test-sources phase, since it tries to enhance class files that do not yet exist. My project is here.

Help with defining custom MetaDataRepository

2011-03-26 Thread Todd Nine
Hi guys, I need to subclass both ClassMetaData and FieldMetaData in our plugin. I've attempted to emulate the code in the JDBC plugin, however I'm not having any success. Can anyone give me some instructions on how to do this? Here are the relevant classes.

Re: Concurrent modification exception on recursive load

2011-03-24 Thread Todd Nine
HEAD https://github.com/riptano/hector-composite latest master. It seems to be intermittent and possibly a race condition. I only get it when running it on my i7 workstation at work.On my core 2 duo MBP it's not an issue. Thanks, -- todd SENIOR SOFTWARE ENGINEER todd nine| spidertracks

Re: Proxy all types

2011-03-23 Thread Todd Nine
renewed interest we'll try to help. -mike On Tue, Mar 22, 2011 at 7:29 PM, Todd Nine t...@spidertracks.com wrote: Hi all, I've run into an issue I can't seem to solve using the default Proxy mechanism in Open JPA. For building indexes in Cassandra

Concurrent modification exception on recursive load

2011-03-23 Thread Todd Nine
? Thanks, Todd -- todd SENIOR SOFTWARE ENGINEER todd nine| spidertracks ltd | 117a the square po box 5203 | palmerston north 4441 | new zealand P: +64 6 353 3395 E: t...@spidertracks.co.nz W: www.spidertracks.com

Help with cascading in the cassandra plugin

2011-03-22 Thread Todd Nine
Hi guys, I've finished *-to-many and *-to one relationships in the cassandra plugin, however I'm having a difficult time with one of my tests. The test class is here. https://github.com/riptano/hector-jpa/blob/master/src/test/java/com/datastax/hectorjpa/store/ManyToManyIndexTest.java The test

[jira] [Created] (OPENJPA-1964) Cascade on persist does not correctly cascade all objects in the graph

2011-03-22 Thread Todd Nine (JIRA)
Type: Bug Components: jpa Affects Versions: 2.1.0 Environment: Sun JDK 1.6 Reporter: Todd Nine Priority: Blocker We're currently building a Cassandra adapter for OpenJPA. In doing so we've encountered an issue that I think may be a bug. We have our

Proxy all types

2011-03-22 Thread Todd Nine
Hi all, I've run into an issue I can't seem to solve using the default Proxy mechanism in Open JPA. For building indexes in Cassandra, I need to store both the value at load time, and the current value via a proxy for any field. I know the proxy has the change tracker, but that does not

IRC Channel

2011-03-17 Thread Todd Nine
Hey guys, Is there an active IRC channel I can join for openjpa? Thanks, Todd

Re: Help with Collection Proxies

2011-03-16 Thread Todd Nine
of the field with the given property path. Thanks again for the help! Todd On Wed, 2011-03-16 at 09:06 -0500, Michael Dick wrote: On Tue, Mar 15, 2011 at 10:15 PM, Todd Nine t...@spidertracks.com wrote: Hi guys, I have a few questions regarding large sets and ordering

Help with Collection Proxies

2011-03-15 Thread Todd Nine
Hi guys, I have a few questions regarding large sets and ordering and could use some help from the developers. First, everything in Cassandra needs to be write ordering. I must have the properties of the values that have changed on write in order to correctly build our indexes to support the

More questions regarding frameworks

2011-03-14 Thread Todd Nine
Hi guys, I have a few more questions. I've made some progress in identifying where I need to update the hector plugin for collections and could use some help. Collections/Associations. On all collections I need to update a secondary index.The AbstractStoreManager.flush method contains

Re: Help with Cassandra JPA plugin

2011-03-08 Thread Todd Nine
know it's a doable endeavor... The other bit of news is that our own Craig Russell is a bit of JDO expert... :-) And, he might even know a thing or two about the JDO personality. Good luck, Kevin On Mon, Mar 7, 2011 at 10:22 PM, Todd Nine t...@spidertracks.com wrote: Hi

Re: Help with Cassandra JPA plugin

2011-03-08 Thread Todd Nine
probably need to do something similar. Here's an example of our code: https://fisheye6.atlassian.com/browse/~br=trunk/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/util/UUIDGenerator.java?r=777135r=757278r=792592 Good luck, Kevin On Tue, Mar 8, 2011 at 2:46 PM, Todd Nine t

Help with Cassandra JPA plugin

2011-03-07 Thread Todd Nine
to accidentally return the same UUID to multiple callers. Thanks, -- todd SENIOR SOFTWARE ENGINEER todd nine| spidertracks ltd | 117a the square po box 5203 | palmerston north 4441 | new zealand P: +64 6 353 3395 E: t...@spidertracks.co.nz W: www.spidertracks.com