Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://issues.jboss.org/browse/SEAMFORGE-70
- [example] domain $ new-entity --named User
- In which package you'd like to create this @Entity, or enter for default: [com.example.domain]
- Wrote /home/lb3/Desktop/example/src/main/java/com/example/domain/User.java
- Created @Entity [com.example.domain.User]
- Picked up type <JavaResource>: com.example.domain.User
- [example] User.java $
- [example] User.java $ ls
- [fields]
- private::int::version; private::long::id;
- [methods]
- public::getId()::long public::getVersion()::int
- public::setId(final long id)::void public::setVersion(final int version)::void
- [example] User.java $ rm get
- getId()::long getVersion()::int
- [example] User.java $ rm getId()::long
- delete: getId()::long: are you sure? [Y/n]
- [example] User.java $ ls
- [fields]
- private::int::version; private::long::id;
- [methods]
- public::getVersion()::int public::setId(final long id)::void
- public::setVersion(final int version)::void
- [example] User.java $
Advertisement
Add Comment
Please, Sign In to add comment