File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Hibernate @Embeddable Annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate @Embeddable Annotation" Watch "Hibernate @Embeddable Annotation" New topic

Hibernate @Embeddable Annotation

subha nair

Joined: Jun 19, 2008
Posts: 23
I have created a Customer table which has Name,id and phone
I have an embeddable class Name having firstname and lastname.

Code is as follows..


When I run this it is giving an exception

org.apache.jasper.JasperException: Invalid property 'firstname' of bean class [com.palnar.library.service.CustomerRegistrationBean]: Bean property 'firstname' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

Please help me in this.....
[ July 12, 2008: Message edited by: Mark Spritzler ]
I agree. Here's the link:
subject: Hibernate @Embeddable Annotation
It's not a secret anymore!