Should I start my Seam project from scratch or from a seam-gen generated project?

风格不统一 提交于 2019-11-28 09:05:58

问题


I have been using Seam-gen with a small sample database to help me learn the Seam framework. Now I am going to build a more complex application. Are there disadvantages or things that I should watch out for if I decide to start from a seam-gen project?


回答1:


Are there disadvantages or things that I should watch out for if I decide to start from a seam-gen project ?

No.

  • A Seam-gen generated project can be opened without any restriction in NetBeans (like another project)
  • If you use Eclipse, some settings are needed.
  • Seam-gen takes care includes all libraries
  • It creates by default, production and development profile. It helps you develop faster, without deployment.



回答2:


I agree with @Arthur.

And I would like to add these:

  • Use seam-gen to get quickly started with ant script, deployment and libraries.
  • Do NOT use the Seam Entity/Query Framework (EntityQuery, EntityHome, EntityList classes)
    • There are many reasons for this, but mostly because it adds an extra layer of abstraction, and it is very difficult to scale and improve performance on these objects.
    • It complicates things unnecessary. Better to just develop your components and minimalize the component to only do what it is supposed to do, hence increase performance


来源:https://stackoverflow.com/questions/2281418/should-i-start-my-seam-project-from-scratch-or-from-a-seam-gen-generated-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!