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

Storing a collection of images #59

Open
sundorf opened this issue Dec 30, 2011 · 1 comment
Open

Storing a collection of images #59

sundorf opened this issue Dec 30, 2011 · 1 comment

Comments

@sundorf
Copy link

sundorf commented Dec 30, 2011

I would like to use something like this:

@Embedded public List images = new ArrayList();

But I get a RuntimeException: bad type, not parameterized...

Is there another way to support this or would it be a feature request?

@greenlaw110
Copy link
Collaborator

You can create another Model to store one image and then create a reference
list to that model:

public class ImageRecord extends Model {
public Blob image;
}

public class MyModel extends Model {
@referenced public List images;
}

On Sat, Dec 31, 2011 at 5:34 AM, sundorf <
[email protected]

wrote:

I would like to use something like this:

@Embedded public List images = new ArrayList();

But I get a RuntimeException: bad type, not parameterized...

Is there another way to support this or would it be a feature request?


Reply to this email directly or view it on GitHub:
#59

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