Thank you Craig,
You are right, I have to be in transaction...
My code and your example works after relevant changes...
Best regards,
Alex
--
View this message in context:
http://www.nabble.com/Cannot-perform-operation-delete-on-detached-object-tf4670739.html#a13351041
Sent from the OpenJPA
Hallo all,
I have the problem that I cannot delete a detached object.
My source codes are (I'm using the spring framework):
public void delete(final int id) {
final JpaTemplate t = getJpaTemplate();
T obj = t.find(getObjectClass(), id);
if (obj != null) {
Hi,
Patrick Linskey-2 wrote:
>
> If you remove the columnDefinition, does the problem go away? I'm not
> suggesting that as a solution, but the answer will help debug the
> problem.
>
Yes, the problem goes away if I delete the columnDefinition.
best regards,
alex
--
View this message in cont
Hallo,
It looks like SQL is wrong generated when I'm using relation annotations in
my class plus runtime lazy loading:
@Entity
@Table(name = "lkp_dys_days")
@NamedQueries( { @NamedQuery(name = "getDay", query = "select x from Days x
where x.dysYear = ?1 and x.dysMonth = ?2 and x.dysDay = ?3") }
Hallo,
I hope that I'm right: you have to use Enhancement for this option...
see
http://openjpa.apache.org/docs/latest/manual/manual.html#ref_guide_pc_enhance
for details.
--
View this message in context:
http://www.nabble.com/Lazy-loading-not-working.-tf4562936.html#a13030513
Sent from the Op