Package | Description |
---|---|
com.neurosys.products.dao | |
com.neurosys.products.dao.jpa | |
com.neurosys.products.domain |
Product Association Types
|
com.neurosys.products.service |
Modifier and Type | Method and Description |
---|---|
ProductAlias |
ProductDao.save(ProductAlias alias)
Save a
ProductAlias |
Modifier and Type | Method and Description |
---|---|
List<ProductAlias> |
ProductDao.getAliasForProduct(T product)
For a given Product (T) derive all its
ProductAlias |
Modifier and Type | Method and Description |
---|---|
ProductAlias |
ProductDao.save(ProductAlias alias)
Save a
ProductAlias |
Modifier and Type | Method and Description |
---|---|
ProductAlias |
ProductDaoImpl.save(ProductAlias alias)
This method does a
EntityManager.merge(Object) operation If one wants to Insert a new record without merge and using an existing parent object, one may directl hack it via the EntityManager: ProductAlias pa = new ProductAlias(); pa.setProduct(existingP); Product proxyParent = new Product(); proxyParent.setId(p.getParentId()); //Avoid having to query for parent again pa.setParent(proxyParent); em.persist(pa); |
Modifier and Type | Method and Description |
---|---|
List<ProductAlias> |
ProductDaoImpl.getAliasForProduct(T product) |
Modifier and Type | Method and Description |
---|---|
ProductAlias |
ProductDaoImpl.save(ProductAlias alias)
This method does a
EntityManager.merge(Object) operation If one wants to Insert a new record without merge and using an existing parent object, one may directl hack it via the EntityManager: ProductAlias pa = new ProductAlias(); pa.setProduct(existingP); Product proxyParent = new Product(); proxyParent.setId(p.getParentId()); //Avoid having to query for parent again pa.setParent(proxyParent); em.persist(pa); |
Constructor and Description |
---|
ProductAlias(ProductAlias alias) |
Modifier and Type | Method and Description |
---|---|
ProductAlias |
ProductServiceImpl.save(ProductAlias alias) |
Modifier and Type | Method and Description |
---|---|
List<ProductAlias> |
ProductServiceImpl.getAliasForProduct(T product) |
Modifier and Type | Method and Description |
---|---|
ProductAlias |
ProductServiceImpl.save(ProductAlias alias) |
Copyright © 2018. All rights reserved.