Thread View: es.comp.lenguajes.java
2 messages
2 total messages
Started by Estevo Paz Freire
Mon, 24 May 2010 09:56
Atributo no persistido en un modelo de datos
Author: Estevo Paz Freire
Date: Mon, 24 May 2010 09:56
Date: Mon, 24 May 2010 09:56
26 lines
1960 bytes
1960 bytes
--Signature=_Mon__24_May_2010_11_56_41_+0200_dR_lZ2oD6cSt=9zz Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hola, quiero tener un atributo en una clase JPA que ni se lea ni se escriba en la= base de datos. Prob=E9 utilizando la etiqueta @Transient, pero intenta hacer la lectura de= l atributo en base de datos aunque luego no persista. Gracias. --Signature=_Mon__24_May_2010_11_56_41_+0200_dR_lZ2oD6cSt=9zz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkv6TVkACgkQK8pQHUE+awt8pACgrmMjkuHCthldsqfs6ksechNM uNgAnieJDh7I78/+BihziRFLzJOfFCwN =Vzvg -----END PGP SIGNATURE----- --Signature=_Mon__24_May_2010_11_56_41_+0200_dR_lZ2oD6cSt=9zz--
Re: Atributo no persistido en un modelo de datos (Solucionado)
Author: Estevo Paz Freire
Date: Tue, 25 May 2010 10:59
Date: Tue, 25 May 2010 10:59
24 lines
1999 bytes
1999 bytes
--Signature=_Tue__25_May_2010_12_59_59_+0200_NlJg28YDF7.MgOQK Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Despu=E9s de 20 vueltas sin saber que era lo que pasaba, al final resulta q= ue es porque ten=EDa la etiqueta @Transient en el setter del atributo, al c= ambiarlo para el getter, el problema est=E1 resuelto. Un saludo, Estevo. --Signature=_Tue__25_May_2010_12_59_59_+0200_NlJg28YDF7.MgOQK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkv7ra8ACgkQK8pQHUE+awvZqwCgyg2VwOqEFa4amxEmUNM4Tmvc oaMAnA/lwEw94JoW5IsPawiMnRruNEJH =qkn9 -----END PGP SIGNATURE----- --Signature=_Tue__25_May_2010_12_59_59_+0200_NlJg28YDF7.MgOQK--
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads