Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Project for JPA » EclipseLink(Using Inheritance)
EclipseLink [message #1854584] Fri, 26 August 2022 14:30
hejer ishak is currently offline hejer ishakFriend
Messages: 1
Registered: August 2022
Junior Member
I have three Entities

@MappedSuperClass
public abstract class AbstractEntity {

}

@Entity
public class Entity1 extends AbstractEntity {
string treat;
}

@Entity
public class Entity2 extends AbstractEntity {

string state;
}


How can i query on AbstractEntity that search from Entity1 and Entity2 , also i need to extract only enity1 that have treat= 1 and Entity2 that have state = 2 ?
Goto Forum:
  


Current Time: Sat Nov 11 05:58:51 GMT 2023

Powered by FUDForum. Page generated in 0.02111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top