File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes how to exclude a class member from hibernate mapping? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "how to exclude a class member from hibernate mapping?" Watch "how to exclude a class member from hibernate mapping?" New topic
Author

how to exclude a class member from hibernate mapping?

chris gar
Ranch Hand

Joined: Jul 20, 2002
Posts: 45
I have a List that I'm using for utility purposes in a class that I don't want to be mapped to hibernate/db.

I know - it's bad practice, but I'm about to refactor the persistence layer anyway.

What would the annotation be to exclude this from hibernate so I can use only in the java side?

Thanks
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

@Transient


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to exclude a class member from hibernate mapping?
 
Similar Threads
HttpServletRequest equivalent on html page
Maven-licence-plugin
hibernate primary key mapping - sequence
Hibernate annotation: exclude a field
Ant - copy dir, exclude subdir