开发者

Auto Synchronization of Entity Bean

Could you please solve my tiny problem. I have an entity bean name ABC which is created from database and table name in abc. The entity bean is ge开发者_如何学JAVAnerated properly through tools that I have used but now what happened I have added few more column to the table and now I want these newly added column to the EntityBean. How can I do that?


I'd say the cleanest way would be to add the fields and mappings yourself. That way you have full control on how the mapping is defined.

Edit: you might have a look at the hibernate tools for code generation: http://docs.jboss.org/tools/3.2.1.GA/en/hibernatetools/html_single/index.html#codegenarchitecture

Please note that I'd still advise to do the changes to entities as well as to the database yourself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜