Hi Everyone, 

I am interrested in learning the work done behind the screen on database 
when  Class (Entity) has one of its instance variable List<E> exampleList, has 
mapping  one of mentioned below

@Entity
@Table(name = "COURSE")
public class Course {

@Id
@GeneratedValue
private Integer id;

@Column
private String name;

@Column
private Integer credits;

@ManyToMany(fetch = FetchType.EAGER,
        cascade = CascadeType.ALL)
private List<Course> prerequisites = new ArrayList<>();

}



@ManyToMany
@OneToMany
@ManyToOne

I understand, this implementation will allow us to get list of 
prerequisitsfor any given course instance with that unique ID. I would like 
to learn how a database looks and saves this mapped document(rows) under 
these curcumstances and What exaclty JPA specification for CurdRespository 
handles 
it. 

Regards
Pankaj Nimgade

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1b11e244-8fe2-490d-a482-e63b4fceba64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengin... Pankaj Nimgade
    • [google-app... 'Katayoon (Cloud Platform Support)' via Google App Engine

Reply via email to