File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(JPA) can I map the inner class?

 
Cainiao Zou
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an entity bean, can I define inner class (not static inner class)? Can I map them in JPA or Hibernate?
thanks
 
Arun Kumarr
Ranch Hand
Posts: 661
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate doesn't throw any restrictions on including one, though I haven't tried one and not sure if it might throw any exceptions.
My real question would be, Why would you want to have a inner class?. We can design it better.
 
Cainiao Zou
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun Kumarr wrote:Hibernate doesn't throw any restrictions on including one, though I haven't tried one and not sure if it might throw any exceptions.
My real question would be, Why would you want to have a inner class?. We can design it better.


I just got a problem about embedded classes. I don't need inner class if I use the embedded classes. But I got error when I try to nest the embedded class (define an embedded class in an embeddable class).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic