Getting Started with PlayORM

旧街凉风 提交于 2019-12-13 20:45:49

问题


Is there any sort of "How-To" for playORM? I'm just starting to work with it, and haven't been able to get any farther than importing the Ant build file into Eclipse. I didn't see anything like a readme in the unpacked tarball, besides a file in the examples/ directory that says "This is the examples directory" and a feature list in the main directory. Is there anything I can look at to get started using playORM, or is it just meant to be trial and error?


回答1:


Very sorry, we are working on documentation. Until then, here are the steps

  1. check out playOrm
  2. run build or build.bat to generate parser code
  3. import into eclipse
  4. right click on the com.alvazan.test folder and choose run As -> Junit test (all tests should pass)
  5. Modify FactorySingleton.java (change IN_MEMORY to CASSANDRA and change seeds if desired)
  6. repeat running the test suite again if you like so you can play with
  7. NOW that all tests passing and you know that is all and well, EVERY test is the perfect example and the bootstrap is FactorySingleton so you can look at it's code to get started

LAST NOTE: Your jar requires a file nosql.Persistence or PlayOrm(just like hibernate) will not scan your jar for classes.

later, Dean




回答2:


Documentation is now available at https://github.com/deanhiller/playorm/wiki



来源:https://stackoverflow.com/questions/12574027/getting-started-with-playorm

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