aspose 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 Soft Skills this week in the Jobs Discussion 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
    
    1

@Transient
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to exclude a class member from hibernate mapping?