<?php
namespace App\Entity\Idempiere;
use App\Repository\Idempiere\SmUserProductaccessRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SmUserProductaccessRepository::class)
* @ORM\Table(name="SM_User_ProductAccess")
*/
class SmUserProductaccess
{
/**
* @ORM\Column(type="integer")
*/
private $ad_client_id;
/**
* @ORM\Column(type="integer")
*/
private $ad_org_id;
/**
* @ORM\ManyToOne(targetEntity=AdOrg::class)
* @ORM\JoinColumn(referencedColumnName="ad_org_id", nullable=false)
*/
private $ad_org;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ad_role_id;
/**
* @ORM\ManyToOne(targetEntity=AdRole::class)
* @ORM\JoinColumn(referencedColumnName="ad_role_id")
*/
private $ad_role;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $ad_user_id;
/**
* @ORM\ManyToOne(targetEntity=AdUser::class)
* @ORM\JoinColumn(referencedColumnName="ad_user_id")
*/
private $ad_user;
/**
* @ORM\Column(type="datetime")
*/
private $created;
/**
* @ORM\Column(type="integer")
*/
private $createdby;
/**
* @ORM\Column(type="string", length=1)
*/
private $isactive;
/**
* @ORM\Column(type="string", length=1)
*/
private $isexclude;
/**
* @ORM\Column(type="string", length=1)
*/
private $isshowstock;
/**
* @ORM\Column(type="integer")
*/
private $m_product_id;
/**
* @ORM\ManyToOne(targetEntity=MProduct::class, inversedBy="sm_user_productaccesses")
* @ORM\JoinColumn(referencedColumnName="m_product_id", nullable=false)
*/
private $m_product;
/**
* @ORM\Column(type="string", length=1)
*/
private $responsibletype;
/**
* @ORM\Id
* @ORM\Column(type="integer")
*/
private $sm_user_productaccess_id;
/**
* @ORM\Column(type="string", length=36)
*/
private $sm_user_productaccess_uu;
/**
* @ORM\Column(type="datetime")
*/
private $updated;
/**
* @ORM\Column(type="integer")
*/
private $updatedby;
public function getId(): ?int
{
return $this->getSmUserProductaccessId();
}
public function getAdClientId(): ?int
{
return $this->ad_client_id;
}
public function setAdClientId(int $ad_client_id): self
{
$this->ad_client_id = $ad_client_id;
return $this;
}
public function getAdOrgId(): ?int
{
return $this->ad_org_id;
}
public function setAdOrgId(int $ad_org_id): self
{
$this->ad_org_id = $ad_org_id;
return $this;
}
public function getAdOrg(): ?AdOrg
{
return $this->ad_org;
}
public function setAdOrg(?AdOrg $ad_org): self
{
$this->ad_org = $ad_org;
return $this;
}
public function getAdRoleId(): ?int
{
return $this->ad_role_id;
}
public function setAdRoleId(int $ad_role_id): self
{
$this->ad_role_id = $ad_role_id;
return $this;
}
public function getAdRole(): ?AdRole
{
return $this->ad_role;
}
public function setAdRole(?AdRole $ad_role): self
{
$this->ad_role = $ad_role;
return $this;
}
public function getAdUserId(): ?int
{
return $this->ad_user_id;
}
public function setAdUserId(?int $ad_user_id): self
{
$this->ad_user_id = $ad_user_id;
return $this;
}
public function getAdUser(): ?AdUser
{
return $this->ad_user;
}
public function setAdUser(?AdUser $ad_user): self
{
$this->ad_user = $ad_user;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getCreatedby(): ?int
{
return $this->createdby;
}
public function setCreatedby(int $createdby): self
{
$this->createdby = $createdby;
return $this;
}
public function getIsactive(): ?string
{
return $this->isactive;
}
public function setIsactive(string $isactive): self
{
$this->isactive = $isactive;
return $this;
}
public function getIsexclude(): ?string
{
return $this->isexclude;
}
public function setIsexclude(string $isexclude): self
{
$this->isexclude = $isexclude;
return $this;
}
public function getIsshowstock(): ?string
{
return $this->isshowstock;
}
public function setIsshowstock(string $isshowstock): self
{
$this->isshowstock = $isshowstock;
return $this;
}
public function getMProductId(): ?int
{
return $this->m_product_id;
}
public function setMProductId(int $m_product_id): self
{
$this->m_product_id = $m_product_id;
return $this;
}
public function getMProduct(): ?MProduct
{
return $this->m_product;
}
public function setMProduct(?MProduct $m_product): self
{
$this->m_product = $m_product;
return $this;
}
public function getResponsibletype(): ?string
{
return $this->responsibletype;
}
public function setResponsibletype(string $responsibletype): self
{
$this->responsibletype = $responsibletype;
return $this;
}
public function getSmUserProductaccessId(): ?int
{
return $this->sm_user_productaccess_id;
}
public function setSmUserProductaccessId(int $sm_user_productaccess_id): self
{
$this->sm_user_productaccess_id = $sm_user_productaccess_id;
return $this;
}
public function getSmUserProductaccessUu(): ?string
{
return $this->sm_user_productaccess_uu;
}
public function setSmUserProductaccessUu(string $sm_user_productaccess_uu): self
{
$this->sm_user_productaccess_uu = $sm_user_productaccess_uu;
return $this;
}
public function getUpdated(): ?\DateTimeInterface
{
return $this->updated;
}
public function setUpdated(\DateTimeInterface $updated): self
{
$this->updated = $updated;
return $this;
}
public function getUpdatedby(): ?int
{
return $this->updatedby;
}
public function setUpdatedby(int $updatedby): self
{
$this->updatedby = $updatedby;
return $this;
}
}