Class JpaDataFeedFileLob
java.lang.Object
com.broadleafcommerce.datafeed.provider.jpa.domain.JpaDataFeedFileLob
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.Identifiable
,Serializable
@Entity
public class JpaDataFeedFileLob
extends Object
implements com.broadleafcommerce.data.tracking.core.Identifiable, Serializable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Source: https://thorben-janssen.com/mapping-blobs-and-clobs-with-hibernate-and-jpa/getId()
getPath()
This must be fully unique across the system.This is more of a hint than anything else to allow quickly finding records for a particular tenant.int
hashCode()
void
setContent
(Blob content) Source: https://thorben-janssen.com/mapping-blobs-and-clobs-with-hibernate-and-jpa/void
void
This must be fully unique across the system.void
setTenantId
(String tenantId) This is more of a hint than anything else to allow quickly finding records for a particular tenant.toString()
-
Constructor Details
-
JpaDataFeedFileLob
public JpaDataFeedFileLob()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacecom.broadleafcommerce.data.tracking.core.Identifiable
-
getPath
This must be fully unique across the system. Any context-discrimination needs to be embedded in the path value itself. -
getTenantId
This is more of a hint than anything else to allow quickly finding records for a particular tenant.getPath()
should still have context information embedded in it. -
getContent
Source: https://thorben-janssen.com/mapping-blobs-and-clobs-with-hibernate-and-jpa/We explicitly use
Blob
type here to allow JDBC driver to use LOB-specific optimizations that will stream the data instead of loading directly into memory. This mapping is Hibernate-specific.We use
Blob
instead ofClob
to allow callers to store any binary data (including pre-compressed zip files). -
setId
-
setPath
This must be fully unique across the system. Any context-discrimination needs to be embedded in the path value itself. -
setTenantId
This is more of a hint than anything else to allow quickly finding records for a particular tenant.getPath()
should still have context information embedded in it. -
setContent
Source: https://thorben-janssen.com/mapping-blobs-and-clobs-with-hibernate-and-jpa/We explicitly use
Blob
type here to allow JDBC driver to use LOB-specific optimizations that will stream the data instead of loading directly into memory. This mapping is Hibernate-specific.We use
Blob
instead ofClob
to allow callers to store any binary data (including pre-compressed zip files). -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-