For example, there is a relationship between A , B and C: A has Many B, B has many C. I want to remove B and C while remove A.
Using the criteria api, I have a query which does something like: CriteriaBuilder cb = entityManager.getCriteriaBuilder();
I have a query like this, how can I get my entity type from the list? It is returning like object,but when I cast to my Entity it does not cast.
I have two tables \'Task\' and \'Contents\'. Im using single table inheritance with discriminator to map two entities (PrimaryContent, AttachmentContent) to the \'Contents\' table. I have a parent ent
I fear that I miss a very basic point, but I\'m stuck at the moment, hopefully someone can point my eyes starring to hard at it to the right one...
I\'m trying to run a query that checks if some conditions are true and returns a simple boolean result as output.What makes it slightly tricky is that one of the conditions is to test fo开发者_StackOv
i have this code public void guardarAspirante(AspiranteDTO aspiranteDTO) { Aspirante aspirante = new Aspirante();
We\'d like to use another L开发者_开发百科2 cache for our big JPA application. We are trying to achieve a shared cache between multiple servers.
i am new to JPA, i have a problem with my JPA . i have used the entity manager as follows: 1: package com.icesoft.icefaces.samples.datatable.jpa;
I have a problem where I am stuck :(. I have to build a relationship of a relationship( strange !). For example, I have a relation whereone entity A can have many B (OneToMany)