On 28/06/13 11:56, Patrick Huang wrote:
> In zanata-model/src/main/java/org/zanata/model/HTargetUserComment.java:
>> +   // TODO pahuang we probably want to cache below two methods
>> +   @Transient
>> +   public ContentState getContentState()
> 
> I put them in here because we may have detached comment object travel
> between presentation layer and business layer. This will avoid the need
> to always load owning HTextFlowTarget first before you can get to a
> specific comment and check its meta info. But agree should rename it.

I don't understand.  How will these methods achieve that?  If the
HTextFlowTarget wasn't loaded before detaching from the Session, the
methods will fail, won't they?


-- 
Sean Flanigan

Senior Software Engineer
Engineering - Internationalisation
Red Hat