On Tue, Aug 9, 2011 at 11:11 AM, Tom Ware <
tom.ware@xxxxxxxxxx <mailto:
tom.ware@xxxxxxxxxx>> wrote:
Where is the query defined? Annotations?
Yes, as a @NamedQuery.
Is it on an Entity?
An @Entity.
MappedSuperclass? Can you provide a snippet of how it is defined and
include the annotations/XML that define the Entity itself?
Cut and paste (preserving whitespace):
@NamedQuery(name="Minor.
findAll", query="SELECT o FROM Minor o")
@Entity(name="Minor")
@Table(name="minor_table")
public class MinorEntity implements DateConstrained
{
@Id @Basic @Column(name="minor", length=4)
String minor;
@Basic @Column(name="txt", length=24)
String description;
@Basic @Column(name="cip_no", length=8)
String cipNumber;
@Temporal(TemporalType.DATE) @Column(name="active_date")
Date activeDate;
@Temporal(TemporalType.DATE) @Column(name="inactive_date")
Date inactiveDate;
Pretty basic stuff.
Also, I am still interested in what happens if you change the name.
Nothing, reports the developer. She's also pointed out that we've had the problem in the past, and that in point of fact it is /not/ the query that is reported that is the problem. She's said that she's had to comb through all our named queries looking for one that is syntactically invalid. When she fixes that error, then this phantom error goes away.
Best,
Laird