This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to exclude a class member from hibernate mapping?

 
chris gar
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Transient
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic