Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update website documentation according to 0.3 features #67

Closed
bguerout opened this issue Nov 10, 2012 · 7 comments
Closed

Update website documentation according to 0.3 features #67

bguerout opened this issue Nov 10, 2012 · 7 comments
Milestone

Comments

@bguerout
Copy link
Owner

No description provided.

@bguerout
Copy link
Owner Author

Jongo can use regular expressions with $regex:'.*jo' syntax and Pattern.compile() method.
This has to be documented.

@Test
public void patternParameters() throws Exception {
    collection.save(new Friend("john"));
    Friend john = collection.findOne("{name:#}", Pattern.compile("jo.*")).as(Friend.class);
    assertThat(john).isNotNull();
}

@Test
public void regexWithinParams() throws Exception {
    collection.save(new Friend("john")); 
    Friend john = collection.findOne("{name: {$regex: #}}", "jo.*").as(Friend.class); 
    assertThat(john).isNotNull();
}

Sadly, /myquery/ syntax is not supported by the driver yet. So does Jongo.

@yamsellem
Copy link
Collaborator

Exposing Jongo objects through a a web service will be improved by Jongo .3 in several ways:
@Id will help removing ObjectId from Jongo objects
@JsonView support will help to filter attributes on marshalling and unmarshalling
— a JerseyFilter is still provided in the rare case where ObjectId must be used: https://github.com/yamsellem/jongo-jersey

Those options must be documented.

@yamsellem
Copy link
Collaborator

Performance improvements of .3 must be documented.

@yamsellem
Copy link
Collaborator

MapperModifier + Provider must be documented. A introduction to building a custom Provider could be helpful.

@yamsellem
Copy link
Collaborator

Release notes 0.2→0.3 must added.

@yamsellem
Copy link
Collaborator

A page with versions history must be created.

@yamsellem
Copy link
Collaborator

Every pojo attributes is mapped by default by Jongo, so documentation should introduce @JsonIgnore, the default way to exclude attribute from (un)marshalling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants