If I call IvyObject.getDefault("meinEinfachesDatumsFeld") and myIvyObject a data class is then I get null with the following data types:

  • Date
  • DateTime
  • Duration (Returns a java.lang.Long)
  • Object
  • Time

There may be other types this is the case. Do you have an explanaition for this? Can you reproduce the issue?

asked 07.10.2009 at 11:01

Manuel%20Wallrapp's gravatar image

Manuel Wallrapp
(suspended)
accept rate: 0%


getDefault(...) returns a default value if the value is null for those types that have a default value (e.g. String).

For all other data types getDefault(...) returns the same value as get(...). If no value is set it returns null.

link

answered 14.10.2009 at 09:51

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.4k102118122
accept rate: 77%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×24

Asked: 07.10.2009 at 11:01

Seen: 1,914 times

Last updated: 07.10.2009 at 11:01