Class JpaProductAssetTag
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.asset.JpaProductAssetTag
- All Implemented Interfaces:
Serializable
JpaProductAsset.tags
are meant to be query-able and individually modifiable, and thus it
is necessary to maintain them in a separate table. Due to some key limitations in
@ElementCollection
with both functionality in CriteriaQuery
and performance, we
are defining a separate table.
We use a composite key of the tag value + the asset ID to ensure JPA recognizes which tags are the same and which tags are new based upon the tag value rather than some separate ID field.
- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
JpaProductAsset.tags
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getAsset()
TheJpaProductAsset
that this tag belongs to.getTag()
The actual tag value.int
hashCode()
void
setAsset
(JpaProductAsset asset) TheJpaProductAsset
that this tag belongs to.void
The actual tag value.toString()
-
Constructor Details
-
JpaProductAssetTag
public JpaProductAssetTag()
-
-
Method Details
-
getAsset
TheJpaProductAsset
that this tag belongs to. -
getTag
The actual tag value.- Returns:
- the actual tag value
- See Also:
-
EntityAsset.tags
JpaProductAsset.tags
-
setAsset
TheJpaProductAsset
that this tag belongs to. -
setTag
The actual tag value.- Parameters:
tag
- the actual tag value- See Also:
-
EntityAsset.tags
JpaProductAsset.tags
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-