Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Stanimir Stamenkov Newsgroups: comp.lang.java.databases Subject: Re: JPA: annotations or XML? Date: Thu, 02 Jan 2014 11:31:58 +0200 Organization: A noiseless patient Spider Lines: 31 Message-ID: References: <52ba5ad5$0$296$14726298@news.sunsite.dk> <52be46d0$0$299$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 2 Jan 2014 09:31:48 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="63f4af6fea673ddbb3ff8ab2075cec54"; logging-data="29330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18snCsjaRWI1d0mDS+wXkBU" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23 In-Reply-To: <52be46d0$0$299$14726298@news.sunsite.dk> X-Face: "@)%Vlap6d%OVYDS}B4YUWE@yUy+^!w/+.q.,c5kjI#+uG?kYP&r/pTjNWgo:g[A,O=AL3/ j&4Le2cau$ > I guess the question is whether it will work without > @MappedSuperclass on the base class. Yes. I think @MappedSuperclass is only necessary for the framework to pick any explicit mappings (JPA annotations) defined on the super class, but still – needs to be tested with the JPA implementation in use. -- Stanimir