NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
binle
Joined: 30 Jul 2012 Posts: 3
|
Posted: Wed Aug 29, 2012 3:51 pm Post subject: JPA and recursive query. |
|
|
I have a entity:
@Entity
public class Person implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private String name;
private long idPersonParentt;
.....
}
please tell me how to use JPA to get all person to be children of one.
(i need use JPA to process. i was process in SQL but in JPA not process )
Thank for reading. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|