Class JpaCategoryAssetTag
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.asset.JpaCategoryAssetTag
- All Implemented Interfaces:
Serializable
JpaCategoryAsset.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:
-
JpaCategoryAsset.tags
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getAsset()
TheJpaCategoryAsset
that this tag belongs to.getTag()
The actual tag value.int
hashCode()
void
setAsset
(JpaCategoryAsset asset) TheJpaCategoryAsset
that this tag belongs to.void
The actual tag value.toString()
-
Constructor Details
-
JpaCategoryAssetTag
public JpaCategoryAssetTag()
-
-
Method Details
-
getAsset
TheJpaCategoryAsset
that this tag belongs to. -
getTag
The actual tag value.- Returns:
- the actual tag value
- See Also:
-
EntityAsset.tags
JpaCategoryAsset.tags
-
setAsset
TheJpaCategoryAsset
that this tag belongs to. -
setTag
The actual tag value.- Parameters:
tag
- the actual tag value- See Also:
-
EntityAsset.tags
JpaCategoryAsset.tags
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-