Read and Update are two functions exposed as a part of web service.
In first step web service client call read service to get the data.
in second step it may update values and call update service. and both of
these methods are part of @stateless EJB.
I think they will not part of same entity. p
Hello there,
I am trying to make automated JPA integration tests using OpenJPA and HSQLDB.
The entities use automated IDs generated with Database Sequences, as shown in
the entity code snippets below.
However, I encounter strange behavior when running unit tests - the
OpenJPA-generated Sequence
Well, I was able to reproduce if I do the following
1. Create the database tables.
2. Run the PCEnhancer with BaseEntity and MyEntity in the persistence.xml
3. Remove BaseEntity from persistence.xml
4. Persist a new instance of MyEntity.
I've only reproduced with IDENTITY, but it should be simila
Yes, MyBase is in persistence.xml.
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247366.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
I don't know whats happening here - I tested with MySQL 5.1.31 and it worked.
Then I switched back to MySQL 4.1.22 and it worked, too.
So I'm not able to reproduce the error for now - but I have no idea why.
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Issues-with-Generat
Is the MyBase class listed in persistence.xml?
-mike
On Wed, Apr 6, 2011 at 1:54 PM, realdepp wrote:
> MySQL version is 4.1.22
> Connector version is 5.1.8, JDBC version is documented as 4.0
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValu
MySQL version is 4.1.22
Connector version is 5.1.8, JDBC version is documented as 4.0
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Issues-with-GeneratedValue-and-SequenceGenerator-tp6244055p6247210.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Hi Chris,
It looks like you're using the openjpa.jdbc.SynchronizeMappings property
(with ForeignKeys=true). Could you verify whether that is the case in your
environment?
This setting is useful during application development, but you probably
don't want to use this setting in your production envi
I'm going to ask Risk's standard question, how are you doing enhancement?
Can you narrow down the scope of the problem, e.g. does the problem happen
on every insert, or is it something that only happens when the list is
large?
-mike
On Tue, Apr 5, 2011 at 4:28 PM, Jason Ferguson wrote:
> I hav
IIRC, the identity value should be getting returned by the JDBC driver as a
result of the insert. OpenJPA then populates the entity with that value.
What version of MySQL DB and JDBC driver are you using?
-Jeremy
On Wed, Apr 6, 2011 at 10:16 AM, realdepp wrote:
> Thanks, but that didn't solve
Thanks, but that didn't solve the problem.
EntityManager.refresh() has no effect, like expected.
I'm not enhancing with an eclipse tool, I'm calling the java program via
ant:
Rick's right, my memory was faulty. I think in the earlier versions of
OpenJPA a refresh was required, but when I ran with a 2.1.1 snapshot this
morning I didn't have to call refresh.
Thanks for keeping me honest Rick..
-mike
On Wed, Apr 6, 2011 at 9:45 AM, Rick Curtis wrote:
> I'm guessing th
I'm guessing that this might have to do with your enhancement method? If you
are using the eclipse plugin... that is most likely the problem. See
OPENJPA-1879[1] for details.
[1] https://issues.apache.org/jira/browse/OPENJPA-1879
Thanks,
Rick
On Tue, Apr 5, 2011 at 5:36 PM, realdepp wrote:
> H
The detach-related settings in persistence.xml we use are:
In almost all our use cases the fetched entities are serialized and sent to a
remote client. The client is currently not required to have OpenJPA on its
classpath (although it does use enhanced entities).
Henno
-
14 matches
Mail list logo