• 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic