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: JPA and extra fields Date: Thu, 13 Aug 2015 20:12:09 +0200 Organization: Decebal Computing Lines: 10 Message-ID: <87zj1v3vnq.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="528adfd6ad074c92fdc6a7f8fb9e23d8"; logging-data="11718"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3wOmxRtDik87ZdnRpboTPXO5+frkxkG0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Homepage: http://www.decebal.nl/ Cancel-Lock: sha1:CsS6yS3tILYmYupwwynAbm0V2C0= sha1:YfB1I4c6kYyb7IzovjDA9gx5TNg= Xref: csiph.com comp.lang.java.programmer:32323 I am new to JPA. I have to migrate a JDBC application to JPA. For a certain class there are some extra fields in the table that are not in the class itself. (For example creation time, modification time and user that created the entity.) Is it possible to keep those fields in the table and updated, without putting the values in the class? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof