Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002053 [Resin] major always 10-10-07 10:01 11-06-07 14:27
Reporter westrupp View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.4 Product Version 3.1.3
  Product Build
Summary 0002053: amber @NamedQuery does not work with inheritance
Description (rep by Sergey Plehov)

I find and issue with CMP Inheritance and named queries.
If in Example CMP Inheritance ( http://caucho.com/resin-3.1/examples/amber-inherit/index.xtp [^] ) in class Student.java define named query, i got the following exception

com.caucho.config.ConfigException: Named query 'findByName': 'select
o from Student o where o.name=:name' is already defined.

Source code:

package example;

import javax.persistence.*;

@Entity
@Table(name="amber_inherit_student")
@Inheritance
@DiscriminatorValue("student")
@DiscriminatorColumn(name="type")

@NamedQuery(name = "findByName", query = "select o from Student o where o.name=:name") \\ test named query

public class Student {
...
}
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002456)
ferg
11-06-07 14:27

jpa/0l50
 

- Issue History
Date Modified Username Field Change
10-10-07 10:01 westrupp New Issue
11-06-07 14:27 ferg Note Added: 0002456
11-06-07 14:27 ferg Assigned To  => ferg
11-06-07 14:27 ferg Status new => closed
11-06-07 14:27 ferg Resolution open => fixed
11-06-07 14:27 ferg Fixed in Version  => 3.1.4


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker