[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2896?page=c...
]
Steve Ebersole commented on HHH-2896:
-------------------------------------
Contemplating an additional distinction in this API to make it easier for the cases with a
simple natural-id versus a compound one by splitting {{org.hibernate.NaturalIdLoadAccess}}
up into 2 separate interfaces:
{code:title=SimpleNaturalIdLoadAccess.java|borderStyle=solid}
public interface SimpleNaturalIdLoadAccess {
public SimpleNaturalIdLoadAccess with(LockOptions lockOptions);
public Object getReference(Object naturalIdValue);
public Object load(Object naturalIdValue);
}
{code}
{code:title=CompoundNaturalIdLoadAccess.java|borderStyle=solid}
public interface CompoundNaturalIdLoadAccess {
public CompoundNaturalIdLoadAccess with(LockOptions lockOptions);
public CompoundNaturalIdLoadAccess using(String attributeName, Object value);
public Object getReference();
public Object load();
}
{code}
unified approach for id and natural-id loading
-----------------------------------------------
Key: HHH-2896
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2896
Project: Hibernate ORM
Issue Type: Improvement
Components: core
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Attachments: hhh-2896_irc_discussion.txt
A follow-on to HHH-2879 in regards to unifying the loading of entities by pk or
natural-id.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira