Hi Iain,
If you could file a JIRA with a (very) small test case attached
showing this problem, it will be easier to have some enterprising
community member take a closer look. And we can put the test case into
the regression suite.
From examination, I can't tell where the problem is.
Tha
I am considering implementing L2caching myself with openjpa.
Since it is open source and there is little L2 caching support at the
moment I thought I might as well just do it.
Reading the doc I first found the RemotCommitProvider stuff - but this is
not what I am looking for.
It seems to be about
Yes I saw your email previously. I think my bug is the same as yours - so
it seems at least.
But I am not too thrill about having to change my model layer at this point
- I am also using kodo jpa (the paid version from BEA) and it works with
it.
So my choices are to either keep my design and every
Frederic (and all),
I reported a problem last week with enhancer and mappedsuperclass, and
unfortunately nobody was able to help.
I detailed the relevant class relationships there, and I suspect it is
to do with cycle detection (or not!). Of course I don't have cycles in
the inheritance hier
I guess I am sending the email to this list becuase some people working on
openjpa are making statement on the web - podcast - etc... that they have
done for openjpa a great integration with Tangosol cache. I think his name
is David Linskey or something like that - anyhow it does not matter...
In
> I am using openJPA 1.0.1 inside Websphere 6.1.0.
>
> I have written a Entity listener that is trying to publish a copy of
> the object onto a JMS message.
> This involves serializing a copy of the object to put it on the JMS
> message.
>
> I ran into an issue where the serialization of the ob
I am using openJPA 1.0.1 inside Websphere 6.1.0.
I have written a Entity listener that is trying to publish a copy of the
object onto a JMS message.
This involves serializing a copy of the object to put it on the JMS
message.
I ran into an issue where the serialization of the object causes a
reen
I have 99 classes being enhanced. Their relationship is not too crazy -
rather simple and conventional.
All classes have a base class - therefore they all have an entity class and
a mappedsuperclass class.
So in total 198 classes - 99 entities and 99 mappedsuperclass.
I am precising this because s
Frederic,
I'm not an expert with the Tangosol plugin, but in general, the OpenJPA
DataCache plugin is on a per-EntityManager basis. So, if configured, all
Entities associated with a given PersistenceContext (EntityManager) could be
cached. You then have the ability to designate certain Entities a
Hi Frederic,
I'm sure there are many scenarios that can produce the dreaded OOM error.
I'm assuming you were referring to Issue OPENJPA-258 (
https://issues.apache.org/jira/browse/OPENJPA-258)? The fix for that Issue
did go into 1.0.2 and 1.1.0. So, it very well could be that you are
surfacing an
Jan,
I am not aware of such a utility either. I agree that it would be helpful,
especially for debugging. You could either develop it as a standalone
library (if it's generic JPA), or we could probably host it if there's
anything specific to OpenJPA extensions.
The best way to track its progress
I need to have a specific tangosol cache per entity - (or at least per
group of entity):
I am trying to use the annotation @DataCache to make this happen -
unfortunately it does not work. openjpa always uses the tangosol cache
define din the persistence xml file - basically the default cache.
I
Hello -
I was trying the enhance my classes with openjpa 1.0.2 as well as 1.1.0 and
I run into an OutOfMemoryError.
These classes are the same one I am able to enhance using kodo JPA 0.9.6
from BEA.
I am reporting this becuase I saw that the previous bug report on this
issue was marked as resol
Hi Georgi,
Oops, don't know where that came from. It's a bug in the example code.
Outside the container environment, all you can use is extended
persistence context, so there's no use for the flag.
Could you please file a JIRA so we notify you once it's been fixed?
Thanks.
Craig
On Mar
Hello, Michael,
You are right, it's my fault, but I want to switch persistence context
(Transaction/Extended) for some tests and have not luck with the example
from OpenJPA documentation.
Best regards
Georgi
Michael Dick wrote:
> Hi Georgi,
>
> By default all application managed EntityManagers
Hello,
I am using OpenJPA with Derby in an astronomical opensource destkop
application.
Now I need JPQL console in my application. It should allow:
* execute JPQL queries and display results
* show syntax error of JPQL queries
* display results in an table or tree
* export this result somehow
You might want to make that schema.toLowerCase()
Postgres diverges from the JDBC spec by making everything lower case and it
won't find an upper case schema.
I raised that as a bug with postgres and their developers told me it was
unlikely to be changed any time soon.
roger.keays on 27/03/0
Hello,
I am using OpenJPA with Derby in an astronomical opensource destkop
application.
Now I need JPQL console in my application. It should allow:
* execute JPQL queries and display results
* show syntax error of JPQL queries
* display results in an table or tree
* export this result somehow
Hi Georgi,
By default all application managed EntityManagers are extended, so you
shouldn't have to do anything.
Are you seeing different behavior with OpenJPA?
-Mike
On Thu, Mar 27, 2008 at 2:40 AM, Georgi Naplatanov <[EMAIL PROTECTED]> wrote:
> Hello, everybody.
>
> How I can change context
Hi Michael,
I realized that one moment after I sent my first message.
For the archives, the correct query would be:
select p
from Person LEFT OUTER JOIN p.idPlaceOfBirth b
order by b.name
Regards,
Ognjen
Michael Bouschen wrote:
Hi Ognjen,
I agree with Craig, your solution is correct.
Hi Ognjen,
I agree with Craig, your solution is correct. I would like to propose a
small correction: you might want to use the outer join identification
variable in the order by clause.
SELECT p FROM Person p LEFT OUTER JOIN p.idPlaceOfBirth b ORDER BY
b.name
The order by clause of the out
Hi Brian,
You can specify which entities are part of the persistence context with the
following property :
openjpa.MetaDataFactory=jpa(Types=org.foo.Foo;org.foo.Bar)
The unit tests for OpenJPA use this mechanism instead of specifying classes
in persistence.xml, the relevant code looks like this
IRGeek,
You can specify the database configuration settings outside of the
persistence.xml file. I'm doing that now. You provide the
Persistence.createConfigurationFactory with the properties like below:
props = new Properties();
props.put("openjpa.ConnectionURL",
"jdbc:sqlserver://lo
Hi,
Can you please sent me an example in which the mapping to a certain table is
done in persistence.xml?
I use orm.xml to map the class to a certain table:
I read that I have to do the same mapping in persistenc
Here is my patch for OpenJPA 1.0.2. You might prefer to move the code to the
superclass though.
Index:
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java
===
---
openjpa-jdbc/src/main/java/org/apache/openj
Marc LaPierre wrote:
>
> It seems like JPA isn't finding your sequence in the ves schema.
>
> Are you sure that your sequence exists in Postgres?
> Are you able to run "select currval('user_id_seq')" from the sql
> console?
>
Was this ever resolved? In this case SELECT currval('user_id_seq')
Hi Craig,
Thank you for your answer.
We have a Web interface with lots of tables that the user can sort by
clicking on the column name. Appropriate action sets the string in the
ORDER BY clause of the JPA query. But, from what you wrote, I understand
that this is not enough, and that we must
Hi Adam,
I don't think that's a good idea long-term. Equals/hashcode usually targets the
smallest set of business properties which can identify an object. Also, while
reflection got much faster these days, heavy performance issues might still
arise as especially hashcode() is called a lot.
You mi
Hello all
I am trying to pass isolation level hints using query hints and
through JDBCFetchPlan (as explained in openJPA-182). I am unable to
see any isolation level hints appended to query.
Following is my test table
CREATE TABLE TEST11(
ID BIGINT NOT NULL,
prop1 VARCHAR(64),
prop2 V
Hello, everybody.
How I can change context to "Extended Persistence Context" outside a EJB
container ?
The example 3.1 of OpenJPA documentation don't compile due the error
"em = factory.createEntityManager(PersistenceContextType.EXTENDED) ;
The method createEntityManager(Map) in the type Entity
Hello, Bardolf
I created bug report on JIRA -
https://issues.apache.org/jira/browse/OPENJPA-546
Let see OpenJPA developer's comments.
Best regards
Georgi
bardolf wrote:
> Hi Georgi,
> openJPA 1.0.1 does this, but I'm not sure if it is right behaviour.
> Toplink doesn't call update on unchanged
31 matches
Mail list logo