| Anonymous | Login | Signup for a new account | 11-05-2025 01:25 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
| Status | closed | Product Version | 3.1.3 | ||||||
| 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 { ... } |
||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |