public class DescriptorUtils extends Object
| Constructor and Description |
|---|
DescriptorUtils() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyProperties(Object srcObject,
Object dstObject,
Class<? extends org.eclipse.persistence.mappings.DatabaseMapping>[] copyMappingTypes)
Copy src to dst filtered by DatabaseMapping types
|
void |
fixInverseLinks(Object entity)
Method fixes all one-to-many and one-to-one fields with mapped-by
property by filling owning side reference
|
Object |
getPrimaryKeyValue(Object object)
Get primary key value of entity
|
Map<Object,Object> |
mapById(List<Object> srcList)
Transform list of entities to Map PrimaryKey => Entity
|
void |
setEntityManager(javax.persistence.EntityManager entityManager) |
public void setEntityManager(javax.persistence.EntityManager entityManager)
public void fixInverseLinks(Object entity)
entity - public Map<Object,Object> mapById(List<Object> srcList)
srcList - public Object getPrimaryKeyValue(Object object)
object - Copyright © 2019. All rights reserved.