List of usage examples for org.hibernate.annotations LazyCollectionOption EXTRA
LazyCollectionOption EXTRA
To view the source code for org.hibernate.annotations LazyCollectionOption EXTRA.
Click Source Link
From source file:com.amazon.photosharing.dao.Album.java
License:Open Source License
@OneToMany(mappedBy = "album") @LazyCollection(LazyCollectionOption.EXTRA) public List<Comment> getComments() { return comment; }
From source file:com.amazon.photosharing.dao.Album.java
License:Open Source License
@OneToMany(mappedBy = "album", orphanRemoval = true) @LazyCollection(LazyCollectionOption.EXTRA) public List<Share> getShares() { return shares; }
From source file:com.amazon.photosharing.dao.Album.java
License:Open Source License
@XmlTransient @LazyCollection(LazyCollectionOption.EXTRA) @ManyToMany(fetch = FetchType.LAZY, mappedBy = "albums", cascade = CascadeType.PERSIST) public List<Media> getMedia() { return media; }
From source file:com.amazon.photosharing.dao.Media.java
License:Open Source License
@OneToMany(mappedBy = "media") @LazyCollection(LazyCollectionOption.EXTRA) public List<Comment> getComments() { return comment; }
From source file:com.amazon.photosharing.dao.Media.java
License:Open Source License
@OneToMany(mappedBy = "media", orphanRemoval = true) @LazyCollection(LazyCollectionOption.EXTRA) public List<Share> getShares() { return shares; }
From source file:com.amazon.photosharing.dao.Role.java
License:Open Source License
@XmlTransient @LazyCollection(LazyCollectionOption.EXTRA) @ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "roles") public Set<User> getUsers() { return this._users; }
From source file:com.amazon.photosharing.dao.User.java
License:Open Source License
@XmlTransient @LazyCollection(LazyCollectionOption.EXTRA) @OneToMany(mappedBy = "user", orphanRemoval = true, fetch = FetchType.LAZY, cascade = CascadeType.ALL) public List<Media> getMedia() { return media; }
From source file:com.amazon.photosharing.dao.User.java
License:Open Source License
@XmlTransient @LazyCollection(LazyCollectionOption.EXTRA) @OneToMany(mappedBy = "user", orphanRemoval = true, fetch = FetchType.LAZY, cascade = CascadeType.ALL) public List<Share> getShares() { return shares; }
From source file:com.amazon.photosharing.dao.User.java
License:Open Source License
@XmlTransient @LazyCollection(LazyCollectionOption.EXTRA) @OneToMany(mappedBy = "user", orphanRemoval = true, fetch = FetchType.LAZY, cascade = CascadeType.ALL) public List<Album> getAlbums() { return albums; }
From source file:com.amazon.photosharing.dao.User.java
License:Open Source License
@XmlTransient @LazyCollection(LazyCollectionOption.EXTRA) @ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinTable(name = "role_mappings", joinColumns = { @JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "role", nullable = false, updatable = false) }) public List<Role> getRoles() { return _roles; }