This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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?