lincolnthree

#SeamForge understands Java

Mar 16th, 2011
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. https://issues.jboss.org/browse/SEAMFORGE-70
  2.  
  3.  
  4. [example] domain $ new-entity --named User
  5. In which package you'd like to create this @Entity, or enter for default: [com.example.domain]
  6. Wrote /home/lb3/Desktop/example/src/main/java/com/example/domain/User.java
  7. Created @Entity [com.example.domain.User]
  8. Picked up type <JavaResource>: com.example.domain.User
  9. [example] User.java $
  10. [example] User.java $ ls
  11.  
  12. [fields]
  13. private::int::version; private::long::id;
  14.  
  15. [methods]
  16. public::getId()::long public::getVersion()::int
  17. public::setId(final long id)::void public::setVersion(final int version)::void
  18.  
  19. [example] User.java $ rm get
  20. getId()::long getVersion()::int
  21. [example] User.java $ rm getId()::long
  22. delete: getId()::long: are you sure? [Y/n]
  23. [example] User.java $ ls
  24.  
  25. [fields]
  26. private::int::version; private::long::id;
  27.  
  28. [methods]
  29. public::getVersion()::int public::setId(final long id)::void
  30. public::setVersion(final int version)::void
  31.  
  32. [example] User.java $
Advertisement
Add Comment
Please, Sign In to add comment