pascallouisperez / jsonmarshaller

JsonMarshaller is a Java 1.5 library that allows marshalling and unmarshalling of JSON objects to and from entities ("Java classes").
Apache License 2.0
1 stars 0 forks source link

JSON basic type #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
use net.sf.json for basic elements.

JSONArray does not implements any List so

@Entity
public class Settings {
    @Value(type = TreeSetType.class)
    private SortedSet<Project> projects = new TreeSet<Project>();
}

a user type need more work to trasform JSONArray to a List

Original issue reported on code.google.com by nikolas....@finantix.com on 15 Oct 2008 at 2:22

GoogleCodeExporter commented 9 years ago
Not sure I understand this issue. SortedSet are supported on the trunk. So if 
project 
is an @Entity, you should not need to provide your own type.

Original comment by pascallo...@gmail.com on 15 Oct 2008 at 11:55

GoogleCodeExporter commented 9 years ago
Project is an @Entity
Unmarshalling Settings, Settings.projects became an HashSet object that not 
implement
SortedSet.
I try to make a convert in setProjects ma in debug mode setProjects method it 
is not
invoked.

Original comment by nikolas....@finantix.com on 16 Oct 2008 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by pascallo...@gmail.com on 14 Dec 2008 at 6:24