openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Co <...@exist.com>
Subject Question about @AttributeOverride and JPQL
Date Tue, 15 Jan 2008 02:08:27 GMT
Hi all,

If I override an attribute in a mapped superclass from abstractName to 
concreteName via @AttributeOverride(name = "abstractName", column = 
@Column(name = "concreteName")), should I be able to perform a query on 
the concreteName like SELECT model FROM ConcreteClass WHERE 
model.concreteName='test'? or can I only perform a query on the actual 
field like SELECT model FROM ConcreteClass WHERE model.abstractName='test'?

Thanks in advance.

Regards,
Adrian Co

Mime
View raw message