Kevin
On 5/29/07, Dain Sundstrom <[EMAIL PROTECTED]> wrote:
Thanks for taking a look at this. I tried adding a flush after the
remove but the test fails at the same location. I also tried
commenting out the merge calls, but it fails at the same point.
Any ideas? Do you think it is a bug?
new-delete-new-find doesn't work
Key: OPENJPA-247
URL: https://issues.apache.org/jira/browse/OPENJPA-247
Project: OpenJPA
Issue Type: Bug
Reporter: Dain Sundstrom
I have a piece of code
x27;t hurt). I
have a
few inline comments below... I haven't tried your specific example
yet,
just some observations... Thanks.
Kevin
On 5/29/07, Dain Sundstrom <[EMAIL PROTECTED]> wrote:
^nudge
-dain
On May 24, 2007, at 8:13 PM, Dain Sundstrom wrote:
> I have a piece of c
^nudge
-dain
On May 24, 2007, at 8:13 PM, Dain Sundstrom wrote:
I have a piece of code that effectively does the same thing the
following test does:
private void newDeleteNew() throws Exception {
beginTx();
// Create new
Person dain = new Person
I have a piece of code that effectively does the same thing the
following test does:
private void newDeleteNew() throws Exception {
beginTx();
// Create new
Person dain = new Person();
dain.setName("dain");
assertFalse(entityManager.contains(dain));
On May 23, 2007, at 7:56 PM, Marc Prud'hommeaux wrote:
I asked a number of times for a security audit to be made of the
security implications of JPA and it was never taken up. Most of
the vendors make extensive use of privileged operations including
getting system properties, reflection,
Now I'm sorry I sent this email and would like to withdraw my
comments. If the community wants to change the charter or name they
can petition the board later.
I'd like to see the vote continue as is.
-dain
On May 4, 2007, at 10:36 AM, Dain Sundstrom wrote:
I personally define
On May 4, 2007, at 10:50 AM, Phill Moran wrote:
Would we then not have to change the overall name from JPA to
openPersistence or
some such?
That would suck. I see no reason we would "have to change" the
name. It is a choice of the community.
Why not let another project lift out the en
I personally define OpenJPA by the persistence engine and not the
spec it implements. A good persistence engine is very hard to write,
but adapting it to new persistence specs if fairly easy in
comparison. I would like to see the scope be limited to java
persistence with an eye toward the
+1
-dain
On May 3, 2007, at 7:22 AM, Craig L Russell wrote:
This vote is to send the attached draft board resolution to the
incubator for the purpose of graduation from the incubator to the
Apache OpenJPA project.
+1 We're ready; let's graduate
0 Don't care
-1 Let's wait
Establish the
On Apr 26, 2007, at 1:49 PM, David Jencks wrote:
Thanks for all the comments, I've learned a lot.
1. I have a classloader scanning strategy written and apparently
working, however it is rather slow at least in geronimo. Is anyone
interested in it, seeing as how its not an appropriate appro
Is a query a one time use object? Meaning, I only get to call
getResultList(), getSingleResult(), or executeUpdate() once and then
I have to get a new instance.
Also you stated:
On Apr 24, 2007, at 10:35 PM, Patrick Linskey wrote:
(please please please make it a dynamic
proxy that implemen
On Apr 25, 2007, at 10:22 AM, Patrick Linskey wrote:
If I want to have generic code, how am I supposed to
implement the createNamedQuery method? Do I leave the EM
open forever? That doesn't seem right. So when am I
supposed to close the EM?
1. Create an EM proxy. You've already got one, so
On Apr 24, 2007, at 10:35 PM, Patrick Linskey wrote:
Yep -- you've gotta keep it open. If you want to support any JPA impl,
you need to have an EM proxy (please please please make it a dynamic
proxy that implements all the interfaces that the proxied thing
implements).
That code is from my pro
privileged, and is intended solely for the use of the
individual
or entity named in this message. If you are not the intended
recipient,
and have received this message in error, please immediately return
this
by email and then delete it.
-----Original Message-
From: Dain Sundstrom [mai
I am "they", the one writing the cmp code in OpenEJB.
On first read of the stack trace I thought as you that, I was the one
close the entity manager, but on a second read I notice it was
OpenJPA calling "closeIfNoTx" that closes the broker.
On Apr 24, 2007, at 7:0
24, 2007, at 3:07 PM, Marc Prud'hommeaux wrote:
Dain-
Can you send the embedded exception as well? That should tell us
who closed the query, and it might give us a hint why...
On Apr 24, 2007, at 3:03 PM, Dain Sundstrom wrote:
I have some code that runs outside of a transaction which
On Apr 24, 2007, at 2:17 PM, Kevin Sutter wrote:
Patrick,
On 4/24/07, Patrick Linskey <[EMAIL PROTECTED]> wrote:
> One way to do this would
> be to package the work up in a Runnable and execute it in an
> appropriate transactional environment. It might be easier to
> understand if the sequen
I have some code that runs outside of a transaction which does
basically the following:
Query query = entityManager.createNamedQuery(name)
query.setParameter(1, "foo");
List results = query.getResultList();
If I don't set the parameter the code works fine (assuming the query
didn
In Geronimo, we publish to the maven repo as maven likes, but when we
publish to the apache distribution mirrors (for website downloads),
we name the files as we like.
-dain
On Apr 11, 2007, at 8:34 AM, Michael Dick wrote:
Hi,
I'm hitting a bit of a snag with the staging repository for re
On Apr 11, 2007, at 7:28 AM, Kevin Sutter wrote:
Okay, I looked at the spec a bit closer and it looks like we need
to allow
for floats as primary keys:
"The primary key (or field or property of a composite primary key)
should be
one of the following types:
any Java primitive type; any prim
I know it is a really really really stupid idea to use an approximate
type at a primary key, but there is a test in the CMP test suite that
uses a float for a primary key. When I deploy this bean, I get an
exception like the following:
Caused by: <0.9.7-incubating-SNAPSHOT fatal user error
On Apr 10, 2007, at 1:24 PM, Craig L Russell wrote:
Hi Dain,
On Apr 10, 2007, at 12:58 PM, Dain Sundstrom wrote:
On Apr 9, 2007, at 5:44 PM, Craig L Russell wrote:
Hi Dain,
On Apr 9, 2007, at 11:10 AM, Dain Sundstrom wrote:
On Apr 8, 2007, at 1:56 PM, Craig L Russell wrote:
Hi Dain
On Apr 9, 2007, at 12:41 PM, Patrick Linskey wrote:
you need an instance. In CMP the assumption is that entity
instances
are expensive to create, so less safe route and you pool them.
Reusing instances is really a CMP problem, but I don't think it can
be implemented without the help of the JPA
On Apr 9, 2007, at 5:44 PM, Craig L Russell wrote:
Hi Dain,
On Apr 9, 2007, at 11:10 AM, Dain Sundstrom wrote:
On Apr 8, 2007, at 1:56 PM, Craig L Russell wrote:
Hi Dain,
I haven't looked in detail at the life cycle of CMP beans in a
couple of years, but in general you can't s
On Apr 8, 2007, at 1:56 PM, Craig L Russell wrote:
Hi Dain,
I haven't looked in detail at the life cycle of CMP beans in a
couple of years, but in general you can't simply keep the state of
the underlying Entities through the life cycle. CMP beans are
pooled and reused in transaction cont
ndividual
or entity named in this message. If you are not the intended
recipient,
and have received this message in error, please immediately return
this
by email and then delete it.
-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 08, 2007 12:18 AM
To:
On Apr 8, 2007, at 10:20 AM, Craig L Russell wrote:
Hi Dain,
On Apr 8, 2007, at 12:17 AM, Dain Sundstrom wrote:
Is it possible to reuse instances from transaction to transaction?
I would like to be able to create a bean in one transaction,
detach it and reattach the same instance in a new
Is it possible to reuse instances from transaction to transaction?
I would like to be able to create a bean in one transaction, detach
it and reattach the same instance in a new transaction. My goal here
is specifically to reuse instances across transactions because they
have a very expens
I tested the fix and it solved my problem.
Thanks,
-dain
On Apr 2, 2007, at 3:00 PM, Marc Prud'hommeaux wrote:
Dain-
On Apr 2, 2007, at 12:23 PM, Dain Sundstrom wrote:
Is this something we can put in 0.9.7 or has that been cut already?
I've gone ahead and committed the fi
this being something that was
fixed recently, but a quick search through JIRA doesn't reveal
anything.
Could you try it out against the latest 0.9.7-incubating-SNAPSHOT
and let us know if still happens?
On Apr 2, 2007, at 5:27 PM, Dain Sundstrom wrote:
I have the following query:
SELE
I think I saw this once. The problem is in JPA named queries are all
contained in a single global namespace, so if you have to persistent
beans that define queries with the same name you get a warning. It
would be nice if the warning told you where the duplicate
declarations are located.
On Apr 2, 2007, at 8:06 PM, Craig L Russell wrote:
Hi Dain,
I've seen this problem as well, with a different provider. The JPA
spec lead sez that "?1 IS NULL" is not a portable JPAQL query, even
though some providers can generate SQL that some databases can
execute properly.
OpenJPA is
I have the following query:
SELECT a.alias FROM AliasBean AS a WHERE (a.alias IS NULL AND ?1 IS
NULL) OR a.alias = ?1
Which works great when run against HSQLDB. When I switch the
database to Derby I get the following exception:
<0|false|0.9.6-incubating>
org.apache.openjpa.persistence
d in this message. If you are not the intended
recipient,
and have received this message in error, please immediately return
this
by email and then delete it.
-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 9:58 AM
To: open-jpa-dev@inc
So to restate, without the readSchema option, the mapping tool
doesn't know the existing index names or which columns have indexes.
This means that indexes are created blindly, and there could very
well be an index conflict for an existing table created by OpenJPA.
Assuming that is true, s
I'm using 0.9.6 on hsqldb and am getting exceptions like this
periodically:
<0|false|0.9.6-incubating>
org.apache.openjpa.persistence.PersistenceException: Index already
exists: I_BNJBBTB_A1 in statement [CREATE INDEX I_BNJBBTB_A1 ON
BEANEJB_MXM_UNI_BTOB] {stmnt 7870505 CREATE INDEX I_BNJ
at 7:32 PM, Dain Sundstrom wrote:
Actually, I think there is a bigger problem... Say I have a
query like this:
SELECT x FROM foo AS x WHERE foo.name = ?2
The org.apache.openjpa.kernel.QueryImpl.assertParameters(...)
code assumes that if I have 1 parameter it is numbered ?1, but in
EJ
, but I would be
happy with a "don't check for extra-params flag".
-dain
On Mar 31, 2007, at 8:56 AM, Dain Sundstrom wrote:
I'm working on a CMP 2 implementation that delegates to OpenJPA for
persistence. I'm running into a problem where I get the following
excep
I'm working on a CMP 2 implementation that delegates to OpenJPA for
persistence. I'm running into a problem where I get the following
exception:
org.apache.openjpa.persistence.ArgumentException : More parameters
were passed to execute() than were declared: 4 parameters were
specified for
On Mar 22, 2007, at 8:34 AM, Kevin Sutter wrote:
Craig,
I like the idea of putting together a roadmap. I had started this
conversation with Patrick earlier this week, so your timing is
perfect.
Concerning the 0.9.7 release... I would like to "shut down" the
development
of this release s
Not sure if this is relevant, but normally, I use explicit, thread
and then system.
-dain
On Feb 26, 2007, at 10:52 PM, Marc Prud'hommeaux wrote:
How about just assigning cl = ClassLoader.getSystemClassLoader()
(which will hopefully never be null) when cl is null?
On Feb 27, 2007, at
Is it now legal to select multiple items using EJBQL? I haven't
looked at the 3.0 syntax much.
-dain
On Feb 22, 2007, at 4:54 PM, Craig L Russell wrote:
How about
select dept, oldtimers from Department dept LEFT JOIN
dept.employeeCollection oldtimers WHERE dept.deptno >= 100 AND
oldti
I'm no JPA expert, so take my comments with a grain of salt.
How about searching the other direction:
select e from employee e where e.department.depno >= 100 &&
e.yearsOfService >= 15
Then assuming OpenJPA can do it, you could tune the query to grab the
department object along with the e
[
https://issues.apache.org/jira/browse/OPENJPA-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475095
]
Dain Sundstrom commented on OPENJPA-158:
+1
With this change I will be able to lower the log level in
I've found that the easiest way to deal with jars is to stream from
the old jar to the new jar. I've found lots of platform problems
with unpack and rejar... especially around the cleanup of the
unpacked dir.
-dain
On Feb 21, 2007, at 10:25 AM, Pinaki Poddar wrote:
That implies that I'm
On Feb 20, 2007, at 1:13 PM, Pinaki Poddar wrote:
It is kind of a pain to unpack a jar, enhance it and repack it.
How about compile, enhance and then jar?
That implies that I'm that own the development cycle of this code.
In this case, I just get a jar from the user.
Can the OpenJPA enh
Can the OpenJPA enhancer operate on a Jar file? It is kind of a pain
to unpack a jar, enhance it and repack it.
-dain
This is killing my productivity. I'm going to try switching to
toplink to see if this is really an OpenJPA problem.
Does anyone know if toplink has an equivalent of the
LifecycleListener in OpenJAP?
-dain
On Feb 15, 2007, at 8:19 PM, Dain Sundstrom wrote:
That didn't help
og
messages you see before the hang?
On Dec 31, 2006, at 12:28 PM, Dain Sundstrom wrote:
On Dec 31, 2006, at 12:04 AM, Marc Prud'hommeaux wrote:
I've never experienced this problem, but as a guess, are you
running with dynamic enhancement (using the "-javaagent"
flag)?
On Feb 15, 2007, at 5:19 PM, Lance J. Andersen wrote:
Yes. The best we could do is to make a recommendation that users
guarantee uniqueness of names by prepending the entity name to the
query name.
This is exactly what Mike Keith recommends in his book Pro EJB 3
Java Persistence API
Do
On Feb 15, 2007, at 5:02 PM, Craig L Russell wrote:
Hi Dain,
On Feb 15, 2007, at 4:57 PM, Dain Sundstrom wrote:
This is the only group of JPA developers, I know of so I'm going
to ask here...
This was discussed at length in the expert group and the result is
in the specific
-152
Project: OpenJPA
Issue Type: Improvement
Components: jpa
Reporter: Dain Sundstrom
The JPA spec makes it quite easy for uses to create multiple named queries with
the same name. The problem stems from named queries being declared as part of
an
This is the only group of JPA developers, I know of so I'm going to
ask here...
One thing I find strange is the namespace of NamedQueries. I declare
NamedQueries using either an annotation on my entity or in xml using
a named-query element nested in my entity element. This implies to
me
On Feb 13, 2007, at 2:38 PM, Hans J. Prueller wrote:
Don't be afraid - it is definitely NOT JBOSS ;-)
Isn't it hibernate behind the scenes of the JBoss CMP engine?
Last time I checked they were still using my ancient cruft :)
I have been using hibernate for several years now and I'm pretty
On Feb 13, 2007, at 11:19 AM, Patrick Linskey wrote:
I also prefer ignoring it consistently. But considering that
enhancement fails, this seems like more than a WARN. More like a
SEVERE. And if you get a SEVERE during enhancement, should we
really put the EMF into service at all? Issue #2?
I a
[
https://issues.apache.org/jira/browse/OPENJPA-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472844
]
Dain Sundstrom commented on OPENJPA-142:
I think I found a related bug to this. When you have a mapped
On Feb 13, 2007, at 9:59 AM, Craig L Russell wrote:
Hi Dain,
Sounds like a jackpot full of issues here.
On Feb 13, 2007, at 9:17 AM, Dain Sundstrom wrote:
I found the problem. In my entity mappings file, I had a mapping
for a bean that no longer exists. When I comment out that
mapping
On Feb 13, 2007, at 10:06 AM, Hans J. Prueller wrote:
Can you tell us your current J2EE vendor, and if possible the
generation
strategy selected in the vendor deployment descriptor. If not,
can you
grab the last 20 pks from one of the tables, we may be able to
guess the
strategy
One of
Can you tell us your current J2EE vendor, and if possible the
generation strategy selected in the vendor deployment descriptor. If
not,
can you grab the last 20 pks from one of the tables, we may be able
to guess the strategy.
In general, if you vendor is using a UUID, you should able to u
I found the problem. In my entity mappings file, I had a mapping for
a bean that no longer exists. When I comment out that mapping, the
problem goes away. I only fond the problem by turning the debug
level up (the full log is attached). In the log we do warn that the
class was not foun
duced this problem and reported it at:
https://issues.apache.org/jira/browse/OPENJPA-142
The only workaround is to add the @Entity(name="someAlias")
annotation to the class in addition to specifying it in the orm.xml
file.
On Feb 12, 2007, at 11:49 AM, Dain Sundstrom wrote:
I&
On Feb 13, 2007, at 5:27 AM, robert burrell donkin wrote:
On 2/13/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote:
Pointing people at the page is good, but doesn't solve the problem.
i was a little confused about which problem you needed to solve :-)
I think I want to make the list availab
annotate the mapped superclass?
Craig
On Feb 12, 2007, at 7:01 PM, Dain Sundstrom wrote:
When I try to use a simple mapped super class with a trivial sub
class (no fields or methods), I get the following exception:
ERROR - The bean instances business method encountered a system
When I try to use a simple mapped super class with a trivial sub
class (no fields or methods), I get the following exception:
ERROR - The bean instances business method encountered a system
exception:org.apache.openejb.test.entity.cmp.BasicCmpBean.pcGetManagedFi
eldCount()I
java.lang.NoSuchM
to code it that
way (and yes I am quite lazy).
-dain
On Feb 12, 2007, at 4:00 PM, Dain Sundstrom wrote:
I have this scenario in my CMP2JPA tool where I have to generate
subclasses of CMP1 beans. When the user has an "unknown" primary
key or more commonly, when they use the same
I have this scenario in my CMP2JPA tool where I have to generate
subclasses of CMP1 beans. When the user has an "unknown" primary key
or more commonly, when they use the same ejb class for multiple
deployments, I have to generate a sub class to either add an extra
field, or to differentiat
I read on the serverside.com that Kodo has passed the JPA tck, and am
curious if there are any uncommitted patches from BEA that are
required to make OpenJPA compliant. Also, has anyone run OpenJPA
through the JPA tck and if so did we pass?
-dain
I'm using 0.9.6 and it appears the OpenJPA is ignoring the entity
name when processing queries. In stead it seems to always choose the
class name for the schema name of the bean. For example, I have the
following bean declared in my entity mappings:
class="org.apache.openejb.test.enti
+1
The Geronimo API is verified using the official Jee5 signatures file.
-dain
On Feb 8, 2007, at 9:41 PM, Marc Prud'hommeaux wrote:
It turns out that the JPA API we've been building against (the one
from https://maven-repository.dev.java.net/repository/
javax.persistence/jars/persistence
I like to reserve New Feature to high level new stuff that should be
marketed. Normally, I like to break these down into bite-sized sub
tasks. Most other changes are bug fixes or iterative improvements to
the code base.
-dain
On Feb 5, 2007, at 6:52 PM, Patrick Linskey wrote:
Hi,
Does
+1
-dain
On Feb 3, 2007, at 12:39 AM, Marc Prud'hommeaux wrote:
In the interest of keeping up with the latest-and-greatest, I
propose we upgrade our project dependency on the stand-alone Derby
database & JDBC driver for our testing and distribution zip from
Derby 10.2.1.6 to the latest
Due to Apache Incubator policy the archives are only available via
the separate incubator repo at apache.
http://people.apache.org/repo/m2-incubating-repository
For example, the openjpa-all 0.9.6 jar is located here:
http://people.apache.org/repo/m2-incubating-repository/org/apache/
openjpa/
On Feb 1, 2007, at 3:27 PM, Patrick Linskey wrote:
3.5.6:
"Lifecycle callback methods may throw runtime exceptions. A runtime
exception thrown by a callback method that executes within a
transaction
causes that transaction to be rolled back. No further lifecycle
callback
methods will be in
openjpac looks like "open j pac" to my eyes
-dain
On Feb 1, 2007, at 3:20 PM, Patrick Linskey wrote:
They're only prefixed if you provide a URN for them when you
include the
taskdef. But I'm open to either name.
-Patrick
--
Patrick Linskey
BEA Systems, Inc.
___
About once a quarter in the Geronimo project, someone writes a script
to fix all of the properties in the tree. This is because people
normally forget to set these properties, or their IDE doesn't apply
them.
It would be nice if there were a cron job to update the properties
once a week.
te it.
-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 01, 2007 10:55 AM
To: open-jpa-dev@incubator.apache.org
Subject: Unknown primary key
Does JPA or OpenJPA have support for what is called unknown primary
key in the EJB CMP 2.0 spec. An un
On Feb 1, 2007, at 11:39 AM, Kevin Sutter wrote:
I see that they have a plugin for Eclipse, but I haven't tried it
yet. It
doesn't look like it supports IntelliJ. On the surface, the
conversion and
usage looks doable and would satisfy the "failed testcase" problem.
We can exclude tests f
My only concern is IDE support and specifically the IDE I use
intellij. Does this work as a test case type in IntelliJ and Eclipse?
If so, I don't really care which framework we use.
-dain
On Feb 1, 2007, at 11:08 AM, Patrick Linskey wrote:
Hi,
According to the discussion at
https://issue
Does JPA or OpenJPA have support for what is called unknown primary
key in the EJB CMP 2.0 spec. An unknown primary key is the pk of an
entity bean that does not have a field (or abstract getter/setter)
for a primary key. Instead the framework adds a virtual field to the
bean that contain
[
https://issues.apache.org/jira/browse/OPENJPA-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469545
]
Dain Sundstrom commented on OPENJPA-123:
You can list excluded tests in the maven pom. If you are using
re else).
On Jan 30, 2007, at 3:30 PM, Dain Sundstrom wrote:
> I have openjpa setup to auto create my tables, and I see openjpa
> the tables using in my log, but I don't see the create table
> statements. I have this in my persistenc.xml file
>
>
>
>
What version of OpenJPA will this be in and did dropTable get
implemented?
-dain
On Jan 2, 2007, at 6:50 PM, Patrick Linskey wrote:
-Original Message-
From: Shay Banon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 02, 2007 2:33 PM
To: open-jpa-dev@incubator.apache.org
Subject: RE:
I have openjpa setup to auto create my tables, and I see openjpa the
tables using in my log, but I don't see the create table statements.
I have this in my persistenc.xml file
value="buildSchema(ForeignKeys=true)"/>
I there some other property I need to set?
-da
I have a mapping file that contains mappings for some classes that
don't exist (at least in my current testcase). I expect that openjpa
would ignore these mappings (maybe print a warning) but instead I get
an exception:
Caused by: org.xml.sax.SAXException: file:/Users/dain/work/openejb/
t
You should add that to the database specific notes section in the
documentation before we all forget about this :)
-dain
On Jan 29, 2007, at 11:50 PM, Marc Prud'hommeaux wrote:
William-
I didn't know it was an option to have a SQL Server instance be
case-sensitive.
Anyway, you can just
IIRC this sort of extension would only be allowed if the original
schema "http://java.sun.com/xml/ns/persistence/orm"; has explicitly
allowed extension. Historically, Sun has made it impossible to
extend their xml documents.
-dain
On Jan 18, 2007, at 6:16 AM, Kevin Sutter wrote:
Do we ha
On Jan 17, 2007, at 12:07 PM, Patrick Linskey wrote:
The tests can be made to pass by setting the openjpa.DetachState
property to 'fgs',
'loaded' is the proper default. If the CTS is relying on any state
being loaded after a call to getReference(), then those CTS
tests are
wrong and should be
AM, Dain Sundstrom wrote:
I'm getting this exception printed to my log, but my tests work.
Is my test doing something wrong?
<2|false|0.9.6-incubating>
org.apache.openjpa.util.OptimisticException: Optimistic locking
errors were detected when flushing to the data store. The
intended solely for the use of the
individual
or entity named in this message. If you are not the intended
recipient,
and have received this message in error, please immediately return
this
by email and then delete it.
-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED
On Jan 4, 2007, at 1:12 PM, Michael Dick wrote:
By default OpenJPA uses optimistic transactions (ie the transaction
does not
lock database records). Since the database records aren't locked
there is a
chance that a second transaction can modify the record before the
first one
completes. Th
I'm getting this exception printed to my log, but my tests work. Is
my test doing something wrong?
<2|false|0.9.6-incubating>
org.apache.openjpa.util.OptimisticException: Optimistic locking
errors were detected when flushing to the data store. The following
objects may have been concurr
The BrokerImpl class initializes the _loader to Thread.currentThread
().getContextClassLoader() when constructed (when an EM is
constructed). This cl is used while loading the mappings file. This
causes the entity classes to be loaded from the thread context class
loader instead of the cla
Can you have java field of type byte[] that maps to a NUMERIC (or
heck a varchar) in he db? I'm guessing that Kevin's guid is a fixed
128 bit number. If it is and he can map it to a non-blob type, it
should be possible to join with any database system.
-dain
On Jan 2, 2007, at 3:09 PM, M
If you use hsqldb or H2 you can create an in-memory which will always
be empty. This makes testing very easy and fast.
-dain
On Jan 2, 2007, at 12:34 PM, Shay Banon wrote:
I am trying to figure out how to configure OpenJPA to perform drop
and then
create the db schema. I got as far as:
entity named in this message. If you are not the intended
recipient,
and have received this message in error, please immediately return
this
by email and then delete it.
-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 31, 2006 9:19 PM
To: open-jpa
Actually, never mind. Due to the interconnectedness of persistent
classes (i.e., relationships), I need to generate all the classes at
once and add them all to the class loader at the same time. This
means my "elegant" solution is just broken :)
-dain
On Dec 31, 2006, at 3:1
I working on an implementation of the EJB cmp specification which
uses JPA under the covers to implement the persistence. I have the
basics working with hand written subclasses of the abstract cmp2
beans. I just wrote a code generator to replace my hand coded
subclasses using ASM (which r
On Dec 31, 2006, at 12:04 AM, Marc Prud'hommeaux wrote:
I've never experienced this problem, but as a guess, are you
running with dynamic enhancement (using the "-javaagent" flag)? If
so, what happens if you enhance manually, and then run without the
agent flag?
Currently, I am, but I ca
I think is might be intellij because when I use maven to run the
tests and attach remotely it works... kinda sucks :(
-dain
On Dec 30, 2006, at 8:03 PM, Dain Sundstrom wrote:
Anyone having trouble using a debugger with openjpa? When I run
OpenJPA embedded into OpenEJB it seems to corrupt
1 - 100 of 132 matches
Mail list logo