openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mauricio Salatino" <sala...@gmail.com>
Subject Annotation for insert Data
Date Fri, 21 Dec 2007 17:47:25 GMT
Hi all! ..
I'm new here.. and i have a question...
I'm wondering if there are some annotations for insert default data in
an Entity..

i'm think in something like this:

@Entity
@Datas(){
     @Data(Name="John"),
     @Data(Name="George"),
}
public class Person{
     private String name;
     set.. and get...
}

I think this could be useful in the cases when we have entities with
default data.. and we don't wanna create this data every time we
deploy the project..

Thanks..
im waiting for response..
PS: sorry for my english..
-- 
 - Salatino Mauricio -

Mime
View raw message