Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2053 | major | always | 10-10-07 10:01 | 11-06-07 14:27 | |
|
|||||
Reporter: | westrupp | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.3 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.4 | ||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|