Please try with these changes. You need to refer attributes in place of jpa column name.
@Entity
@Table(name = "DEPARTMENT")
@IndexCollection(columns = { @Index(name = "deptName"),
@Index(name = "deptCode") })
@NamedQueries({
@NamedQuery(name = "retrieveDepartment", query = "select d from Department d where d.deptName = ?1"),
@NamedQuery(name = "findDeptById", query = "select d from Department d where d.deptId = ?1") })
public class Department {
///////////////////////////////////////////////////
@Entity
@Table(name = "EMPLOYEE")
@IndexCollection(columns = { @Index(name = "employeeName"),
@Index(name = "designation"), @Index(name = "experience"),
@Index(name = "currentProject") })
@NamedQueries({
@NamedQuery(name = "retrieveEmployee", query = "select e from Employee e where e.employeeName = ?1"),
@NamedQuery(name = "findEmployeeById", query = "select e from Employee e where e.employeeId = ?1") })
public class Employee {
-Vivek
________________________________________
From:
kundera...@googlegroups.com [
kundera...@googlegroups.com] on behalf of subash b [
dumm...@gmail.com]
Sent: 11 January 2014 09:23
To:
kundera...@googlegroups.com
Subject: {kundera-discuss} attribute of the given name and type is not present in the managed type, for name error from kundera created CF
--
You received this message because you are subscribed to the Google Groups "kundera-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
kundera-discu...@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.
________________________________
NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.