在页面下输出一个Entity中没有的属性

在页面上输出一个Entity中没有的属性在hibernate中如果要输出一个Entity中没有的属性可以在这个Entity中加

在页面上输出一个Entity中没有的属性
在hibernate中

如果要输出一个Entity中没有的属性

可以在这个Entity中加入这个属性

然后 get(),set()
然后在get()上加  @Transient

表示 此属性不参与持久层框架