- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
/** * @return The fetch strategy for the association */ public FetchType getFetchStrategy() { return getMapping().getMappedForm().getFetchStrategy(); }
private void buildCascadeOperations() { T mappedForm = this.getMapping().getMappedForm(); this.orphanRemoval = mappedForm.isOrphanRemoval(); final String cascade = mappedForm.getCascade();
protected AbstractPersistentCollection(final Association association, Serializable associationKey, final Session session, Collection collection) { this.collection = collection; this.session = session; this.associationKey = associationKey; this.proxyEntities = association.getMapping().getMappedForm().isLazy(); this.childType = association.getAssociatedEntity().getJavaClass(); this.indexer = new AssociationQueryExecutor() { @Override public boolean doesReturnKeys() { return true; } @Override public List query(Object primaryKey) { Association inverseSide = association.getInverseSide(); Query query = session.createQuery(association.getAssociatedEntity().getJavaClass()); query.eq(inverseSide.getName(), primaryKey); query.projections().id(); return query.list(); } @Override public PersistentEntity getIndexedEntity() { return association.getAssociatedEntity(); } }; }
PropertyMapping<Property> associationPropertyMapping = association.getMapping();