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

not fully detachAll #8256

Closed
ScoobyMax opened this issue May 10, 2018 · 2 comments
Closed

not fully detachAll #8256

ScoobyMax opened this issue May 10, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@ScoobyMax
Copy link

ScoobyMax commented May 10, 2018

OrientDB Version: 2.2.34

Java Version: 1.8

OS: windows

Expected behavior

OObjectEntitySerializer.detachAll(o, db, returnNonProxiedInstance, new HashMap<Object, Object>(), new HashMap<Object, Object>());

with returnNonProxiedInstance= true return full detached object

Actual behavior

return inner map as OTrackedMap

Steps to reproduce

save simple object:

public class SimpleObject{

	@Id
	private Object rid;

	@Version
	private Object version;

	private String objectId;

	private Map<String, String> templatePartsIds;

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public Map<String, String> getTemplatePartsIds() {
		return templatePartsIds;
	}

	public void setTemplatePartsIds(Map<String, String> templatePartsIds) {
		this.templatePartsIds = templatePartsIds;
	}
}

read it from DB and try to deatachall

@ScoobyMax
Copy link
Author

Also with OTrackedList

@luigidellaquila
Copy link
Member

Hi @ScoobyMax

I just pushed a fix for this in 2.2.x branch, now I'm porting it to develop (3.0)
The fix will be released with 2.2.36 and 3.0.1

Thanks

Luigi

@luigidellaquila luigidellaquila self-assigned this May 11, 2018
@luigidellaquila luigidellaquila added this to the 3.0.1 milestone May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants