Welcome Guest  |  Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 648 times and has 3 replies Next Thread
Male toivo
Newbie




Joined: Jun 29, 2009
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Optionally support final field persistance?

Hi,

JDO spec: final fields are not persisted.

How difficult is optionally support final field persistance?
Java 5 itself supports this (post-construction modification of final
fields is now possible when calling setAccessible(true) on a field via reflection.)

Sometimes data must immutable (not altered after creation) - but still persisted.

Thanks
Toivo
[Jun 29, 2009 11:15:39 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male toivo
Newbie




Joined: Jun 29, 2009
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Optionally support final field persistance?

any opinions?

too complicated?
not useful?

weather too hot for thinking?

Thanks
Toivo
[Jul 3, 2009 9:16:38 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male andy
Expert
Member's Avatar

UK
Joined: Mar 13, 2004
Post Count: 5376
Status: Offline
Reply to this Post  Reply with Quote 
Re: Optionally support final field persistance?

Why not read http://issues.apache.org/jira/browse/JDO-540 and then if you're so keen on it you can do the work that JIRA required ...
----------------------------------------
-Andy smile

[Jul 3, 2009 9:30:36 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male toivo
Newbie




Joined: Jun 29, 2009
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
Re: Optionally support final field persistance?

Thanks for link.
I'm not competent enough.
Does this mean what Datanucleus implements this after next JDO specs include final field persistence?

But technically how much final field handling differs form normal field handling in Datanucleus?

What kind of synchronization issues may arise?

Thank you for your time,
Toivo
[Jul 3, 2009 10:31:25 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread