Anonymous | Login | Signup for a new account | 09-07-2024 16:38 PDT |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |