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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
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: 4968

@Transient
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to exclude a class member from hibernate mapping?
 
Similar Threads
Maven-licence-plugin
Hibernate annotation: exclude a field
hibernate primary key mapping - sequence
Ant - copy dir, exclude subdir
HttpServletRequest equivalent on html page