Mobs
Mobs

Reputation: 1562

Exclude entity bean attributes from hibernate query?

I'm new to this hibernate/jpa stuff so bear with me..

I've generated an entity bean and it works fine, but I would like to add some extra attributes to it and this causes hibernate to complain that the extra attributes aren't in the table's field list..

Is there a keyword to exclude these attributes from hibernate's query??

Upvotes: 3

Views: 2538

Answers (1)

Aaron Digulla
Aaron Digulla

Reputation: 328604

Mark them as @Transient.

Upvotes: 10

Related Questions