Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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??

like image 812
Mobs Avatar asked Dec 01 '25 09:12

Mobs


1 Answers

Mark them as @Transient.

like image 183
Aaron Digulla Avatar answered Dec 04 '25 23:12

Aaron Digulla