ext_107082 (
volodymir-k.livejournal.com
) wrote
in
metaclass
2013-04-05 05:28 pm (UTC)
no subject
да-да,
String userId = p.getUserId();
Number amount = p.getAmount();
p.setCode(PAID_CODE);
это ужас-ужас, а правильно
String userId = (String) p.get("UserId");
Number amount = (Number) p.get("Amount");
p.set("Code", PAID_CODE);
это ж совсем другое дело, никаких get/set... o wait...
(
33 comments
)
Post a comment in response:
From:
Anonymous
This account has disabled anonymous posting.
OpenID
Identity URL:
Log in?
Dreamwidth account
Account name
Password
Log in?
If you don't have an account you can
create one now
.
Subject
HTML doesn't work in the subject.
Formatting type
Casual HTML
Markdown
Raw HTML
Rich Text Editor
Message
[
Home
|
Post Entry
|
Log in
|
Search
|
Browse Options
|
Site Map
]
no subject
String userId = p.getUserId();
Number amount = p.getAmount();
p.setCode(PAID_CODE);
это ужас-ужас, а правильно
String userId = (String) p.get("UserId");
Number amount = (Number) p.get("Amount");
p.set("Code", PAID_CODE);
это ж совсем другое дело, никаких get/set... o wait...