- 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
}
protected boolean isBidirectionalManyToOneWithListMapping(PersistentProperty grailsProperty, Property prop) { if(grailsProperty instanceof Association) { Association association = (Association) grailsProperty; Association otherSide = association.getInverseSide(); return association.isBidirectional() && otherSide != null && prop.getValue() instanceof ManyToOne && List.class.isAssignableFrom(otherSide.getType()); } return false; }
protected boolean canBindOneToOneWithSingleColumnAndForeignKey(Association currentGrailsProp) { if (currentGrailsProp.isBidirectional()) { final Association otherSide = currentGrailsProp.getInverseSide(); if(otherSide != null) { if (isHasOne(otherSide)) { return false; } if (!currentGrailsProp.isOwningSide() && (otherSide.isOwningSide())) { return true; } } } return false; }
@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(); }
if (isHasOne(((Association) property).getInverseSide())) { column.setNullable(false);
c.setUnique(config.isUnique()); else if (property.isBidirectional() && isHasOne(property.getInverseSide())) { c.setUnique(true);
Association inverseSide = ((Association) persistentProperty).getInverseSide(); if (inverseSide instanceof Embedded || inverseSide instanceof EmbeddedCollection) {