join « JBoss « JPA Q&A





1. How to implement self join in JPA?    stackoverflow.com

I have a table as follow:

create table ServiceType (
typeCode varchar(32),
parentTypeCode varchar(32),
description varchar(255),
primary_key(typeCode))
I try to implement an entity for this table , the code snippet just like:
    @Entity
  ...