Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: JPA and extra fields Date: Wed, 19 Aug 2015 13:14:04 +0200 Organization: Decebal Computing Lines: 18 Message-ID: <87614br0n7.fsf@Equus.decebal.nl> References: <87zj1v3vnq.fsf@Equus.decebal.nl> <55cd52c4$0$298$14726298@news.sunsite.dk> <87mvxnr4e8.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="25372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/imuB0JShW9/BRyHS6ufAS9J0Wmu/+CPY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:Nhfj06jGSHqbM92QfTpCmUu6I/c= sha1:ouzUW5kXfdCYH6X6WlXX9N+ZLT0= Xref: csiph.com comp.lang.java.programmer:32363 On Wednesday 19 Aug 2015 12:51 CEST, Martin Gregorie wrote: > On Wed, 19 Aug 2015 11:53:03 +0200, Cecil Westerhof wrote: > >> Another possibility would be to write the functions beforeCreate >> and beforeMutate. That would be probably better as my current >> solution? >> > On the assumption that I've understood the use of these data items, > this would be my preferred solution. I am going to remove the setter function and implement beforeCreate and beforeMutate. :-) -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof