openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roger.keays" <roger.ke...@ninthavenue.com.au>
Subject 1.1.0-SNAPSHOT: insert skipped when no columns to be set
Date Tue, 20 May 2008 00:48:07 GMT

Hi All,

Given an entity like

Class A {
  @Id @GeneratedValue(strategy=IDENTITY)
  Long id;

  @OneToMany(mappedBy="somefield")
  List<Thing> things;
}

If you try to persist it, no insert happens, because the row doesn't
actually have any data in it. Although, if you add a string field with a
value the insert does occur.

Has anybody else noticed this?

Cheers,

Roger
-- 
View this message in context: http://www.nabble.com/1.1.0-SNAPSHOT%3A-insert-skipped-when-no-columns-to-be-set-tp17331076p17331076.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Mime
View raw message