Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Creating a Table and add initinial values.

Hi guys, I was wondering if it's possible to add some pre-defined values to a table when the jpa create it.

E.g: I have a entity class, Foo, with two fields: id, description.

Let's say I would like to have the values 1,bar inserted.

is there some way to do it into the entity class or onther place automaticly.

Thanks in advice. 

PS: I'm using <property name="eclipselink.ddl-generation" value="create-tables"/> into my persistense unit to create the tables :)

--
http://www.leandrocosta.pro.br
- Arch Linux User - Linux User: #470599.   LPI ID: LPI000187143
- Desenvolvedor Java/Python/Web
- +55 (88) 9243-  +55 (88) 9296-4030
- Administrador de Rede ( http://www.bitwave.com.br )
- Cursando SI na Estácio ( http://www.estacio.br/ )
- Irc: lokidarkeden at freenode.com


Back to the top