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

Loop problem with Object.object #30

Closed
almozavr opened this issue Sep 15, 2011 · 2 comments
Closed

Loop problem with Object.object #30

almozavr opened this issue Sep 15, 2011 · 2 comments
Labels

Comments

@almozavr
Copy link

If an entity e.g. Message contains ref. entity Message as a field there is a loop exception.

@entity
public class Message extends Model{

    @PrimaryKey(autoIncrement = true)
    public int rowId;
    public int title;
    public int text;
    public Message parentMessage;

    public Message{
    }
}

I tried to set @OneToOne(load = LoadingPolicy.LAZY) for parentMessage but it doesn't help at all.

@ahmetb
Copy link
Owner

ahmetb commented Sep 15, 2011

Sorry I didn't see you created a separate issue. Already explained it in issue #31. You can follow it from there.

@ahmetb ahmetb closed this as completed Sep 15, 2011
@almozavr
Copy link
Author

No problem, thanks! Hope it would be fixed — this is the last thing that prevents me from using ORMan in production development...

ahmetb pushed a commit that referenced this issue Sep 16, 2011
now SQL execution logging does not break String.format method.
Entity dependency graph now ignores self-referencing entities.
Added missing ursor.close() methods to Android Query executer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants