List of usage examples for org.hibernate.annotations CacheConcurrencyStrategy TRANSACTIONAL
CacheConcurrencyStrategy TRANSACTIONAL
To view the source code for org.hibernate.annotations CacheConcurrencyStrategy TRANSACTIONAL.
Click Source Link
From source file:com.hmsinc.epicenter.model.workflow.Attachment.java
License:Open Source License
/** * @return the investigation// w ww . j a v a 2 s . com */ @ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY) @JoinColumn(name = "ID_INVESTIGATION", unique = false, nullable = false, insertable = true, updatable = true) @org.hibernate.annotations.ForeignKey(name = "FK_ATTACHMENT_2") @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) public Investigation getInvestigation() { return investigation; }
From source file:eu.interedition.text.Annotation.java
License:Apache License
@Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @ElementCollection(fetch = FetchType.EAGER) @CollectionTable(name = "interedition_annotation_target", joinColumns = @JoinColumn(name = "annotation_id", nullable = false)) public Set<TextTarget> getTargets() { return targets; }
From source file:org.andromda.howto2.rental.Person.java
/** * Get the cars Collection//from w w w .jav a2 s . co m * * @return SortedSet<Car> */ @OneToMany(mappedBy = "owner") @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @Sort(type = SortType.NATURAL) public SortedSet<Car> getCars() { return this.cars; }
From source file:org.jboss.ejb3.test.clusteredentity.Customer.java
License:Open Source License
@Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @OneToMany(mappedBy = "customer", fetch = FetchType.EAGER, cascade = CascadeType.ALL) public Set<Contact> getContacts() { return contacts; }
From source file:org.jboss.pressgang.ccms.model.BugzillaBug.java
License:Open Source License
@OneToMany(fetch = FetchType.LAZY, mappedBy = "bugzillaBug", cascade = CascadeType.ALL, orphanRemoval = true) @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @BatchSize(size = Constants.DEFAULT_BATCH_SIZE) public Set<TopicToBugzillaBug> getTopicToBugzillaBugs() { return topicToBugzillaBugs; }
From source file:org.jboss.pressgang.ccms.model.Category.java
License:Open Source License
@OneToMany(fetch = FetchType.LAZY, mappedBy = "category", cascade = CascadeType.ALL, orphanRemoval = true) @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @BatchSize(size = Constants.DEFAULT_BATCH_SIZE) public Set<TagToCategory> getTagToCategories() { return tagToCategories; }
From source file:org.jboss.pressgang.ccms.model.contentspec.ContentSpec.java
License:Open Source License
@OneToMany(fetch = FetchType.LAZY, mappedBy = "contentSpec", cascade = CascadeType.ALL, orphanRemoval = true) @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @BatchSize(size = Constants.DEFAULT_BATCH_SIZE) public Set<ContentSpecToPropertyTag> getContentSpecToPropertyTags() { return contentSpecToPropertyTags; }
From source file:org.jboss.pressgang.ccms.model.contentspec.ContentSpec.java
License:Open Source License
@OneToMany(fetch = FetchType.LAZY, mappedBy = "contentSpec", cascade = CascadeType.ALL, orphanRemoval = true) @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @BatchSize(size = Constants.DEFAULT_BATCH_SIZE) public Set<CSNode> getCSNodes() { return csNodes; }
From source file:org.jboss.pressgang.ccms.model.contentspec.ContentSpec.java
License:Open Source License
@OneToMany(fetch = FetchType.LAZY, mappedBy = "contentSpec", cascade = CascadeType.ALL, orphanRemoval = true) @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @BatchSize(size = Constants.DEFAULT_BATCH_SIZE) public Set<ContentSpecToTag> getContentSpecToTags() { return contentSpecToTags; }
From source file:org.jboss.pressgang.ccms.model.contentspec.ContentSpec.java
License:Open Source License
@OneToMany(fetch = FetchType.LAZY, mappedBy = "contentSpec", cascade = CascadeType.ALL, orphanRemoval = true) @Cache(usage = CacheConcurrencyStrategy.TRANSACTIONAL) @BatchSize(size = Constants.DEFAULT_BATCH_SIZE) @OrderBy("id DESC") @NotAudited// ww w . j a v a 2 s. c o m public Set<ContentSpecToProcess> getContentSpecToProcesses() { return contentSpecToProcesses; }