public abstract class MappingTools extends Object
Constructor and Description |
---|
MappingTools() |
Modifier and Type | Method and Description |
---|---|
static String |
createComponentPrefix(String componentName) |
static String |
createToOneRelationPrefix(String referencePropertyName) |
static String |
getReferencedEntityName(Value value) |
static boolean |
ignoreNotFound(Value value) |
public static String createComponentPrefix(String componentName)
componentName
- Name of the component, that is, name of the property in the entity that references the component.public static String createToOneRelationPrefix(String referencePropertyName)
referencePropertyName
- The name of the property that holds the relation to the entity.public static boolean ignoreNotFound(Value value)
value
- Persistent property.false
if lack of associated entity shall raise an exception, true
otherwise.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.