Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by Abdulrhman A ( 13 years ago )
public class InmateImpl extends InmateBaseImpl {
 /*
  * NOTE FOR DEVELOPERS:
  *
  * Never reference this class directly. All methods that expect a Inmate Entity model instance should use the {@link sa.gov.nafethah.service.model.Inmate} interface instead.
  */
 public InmateImpl() {
 }
 
 public User getUser() throws PortalException, SystemException{
  long userId = this.getInmateId();
  
  if(userId == 0){
   return null;
  }
  
  return UserLocalServiceUtil.getUser(userId);
 }
} 

// then you build service

 

Revise this Paste

Your Name: Code Language: