/** * Parse basic. */ protected void parseBasic(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } }
/** * Parse basic. */ protected void parseBasic(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } }
/** * Parse basic. */ protected void parseBasic(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } }
/** * Parse basic. */ protected void parseBasic(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } }
/** * Parse many-to-many. */ protected void parseManyToMany(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } val = attrs.getValue("target-entity"); if (val != null) fmd.getElement().setDeclaredType(classForName(val)); assertPCCollection(fmd, "ManyToMany"); fmd.setSerialized(false); // override Lob in annotation }
/** * Parse many-to-many. */ protected void parseManyToMany(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } val = attrs.getValue("target-entity"); if (val != null) fmd.getElement().setDeclaredType(classForName(val)); assertPCCollection(fmd, "ManyToMany"); fmd.setSerialized(false); // override Lob in annotation }
/** * Parse many-to-many. */ protected void parseManyToMany(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } val = attrs.getValue("target-entity"); if (val != null) fmd.getElement().setDeclaredType(classForName(val)); assertPCCollection(fmd, "ManyToMany"); fmd.setSerialized(false); // override Lob in annotation }
/** * Parse many-to-many. */ protected void parseManyToMany(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } val = attrs.getValue("target-entity"); if (val != null) fmd.getElement().setDeclaredType(classForName(val)); assertPCCollection(fmd, "ManyToMany"); fmd.setSerialized(false); // override Lob in annotation }
/** * Parse one-to-many. */ protected void parseOneToMany(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("fetch"); if (val != null) { fmd.setInDefaultFetchGroup("EAGER".equals(val)); } val = attrs.getValue("target-entity"); if (val != null) fmd.getElement().setDeclaredType(classForName(val)); assertPCCollection(fmd, "OneToMany"); fmd.setSerialized(false); // override any Lob annotation boolean orphanRemoval = Boolean.valueOf(attrs.getValue( "orphan-removal")); setOrphanRemoval(fmd.getElement(), orphanRemoval); }
/** * Parse many-to-one. */ protected void parseManyToOne(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("target-entity"); if (val != null) fmd.setTypeOverride(classForName(val)); assertPC(fmd, "ManyToOne"); fmd.setSerialized(false); // override any Lob annotation if (!fmd.isDefaultFetchGroupExplicit()) fmd.setInDefaultFetchGroup(true); }
/** * Parse one-to-one. */ protected void parseOneToOne(FieldMetaData fmd, Attributes attrs) throws SAXException { String val = attrs.getValue("target-entity"); if (val != null) fmd.setTypeOverride(classForName(val)); assertPC(fmd, "OneToOne"); fmd.setSerialized(false); // override any Lob annotation if (!fmd.isDefaultFetchGroupExplicit()) fmd.setInDefaultFetchGroup(true); }
/** * Parse embedded. */ protected void parseEmbedded(FieldMetaData fmd, Attributes attrs) throws SAXException { assertPC(fmd, "Embedded"); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); fmd.setSerialized(false); // override any Lob annotation if (fmd.getEmbeddedMetaData() == null) // fmd.addEmbeddedMetaData(); deferEmbeddable(fmd.getDeclaredType(), fmd); }
/** * Parse embedded. */ protected void parseEmbedded(FieldMetaData fmd, Attributes attrs) throws SAXException { assertPC(fmd, "Embedded"); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); fmd.setSerialized(false); // override any Lob annotation if (fmd.getEmbeddedMetaData() == null) // fmd.addEmbeddedMetaData(); deferEmbeddable(fmd.getDeclaredType(), fmd); }
/** * Parse embedded. */ protected void parseEmbedded(FieldMetaData fmd, Attributes attrs) throws SAXException { assertPC(fmd, "Embedded"); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); fmd.setSerialized(false); // override any Lob annotation if (fmd.getEmbeddedMetaData() == null) // fmd.addEmbeddedMetaData(); deferEmbeddable(fmd.getDeclaredType(), fmd); }
/** * Parse embedded. */ protected void parseEmbedded(FieldMetaData fmd, Attributes attrs) throws SAXException { assertPC(fmd, "Embedded"); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); fmd.setSerialized(false); // override any Lob annotation if (fmd.getEmbeddedMetaData() == null) // fmd.addEmbeddedMetaData(); deferEmbeddable(fmd.getDeclaredType(), fmd); }
/** * Parse @Embedded. Given annotation may be null. */ private void parseEmbedded(FieldMetaData fmd, Embedded anno) { if (!JavaTypes.maybePC(fmd.getValue())) throw new MetaDataException(_loc.get("bad-meta-anno", fmd, "Embedded")); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); if (fmd.getEmbeddedMetaData() == null) fmd.addEmbeddedMetaData(); }
/** * Parse @Embedded. Given annotation may be null. */ private void parseEmbedded(FieldMetaData fmd, Embedded anno) { if (!JavaTypes.maybePC(fmd.getValue())) throw new MetaDataException(_loc.get("bad-meta-anno", fmd, "Embedded")); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); if (fmd.getEmbeddedMetaData() == null) fmd.addEmbeddedMetaData(getAccessCode(fmd.getDeclaredType())); }
/** * Parse @Embedded. Given annotation may be null. */ private void parseEmbedded(FieldMetaData fmd, Embedded anno) { if (!JavaTypes.maybePC(fmd.getValue())) throw new MetaDataException(_loc.get("bad-meta-anno", fmd, "Embedded")); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); if (fmd.getEmbeddedMetaData() == null) fmd.addEmbeddedMetaData(getAccessCode(fmd.getDeclaredType())); }
/** * Parse @Embedded. Given annotation may be null. */ private void parseEmbedded(FieldMetaData fmd, Embedded anno) { if (!JavaTypes.maybePC(fmd.getValue())) throw new MetaDataException(_loc.get("bad-meta-anno", fmd, "Embedded")); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); if (fmd.getEmbeddedMetaData() == null) fmd.addEmbeddedMetaData(getAccessCode(fmd.getDeclaredType())); }
/** * Parse @Embedded. Given annotation may be null. */ private void parseEmbedded(FieldMetaData fmd, Embedded anno) { if (!JavaTypes.maybePC(fmd.getValue())) throw new MetaDataException(_loc.get("bad-meta-anno", fmd, "Embedded")); fmd.setInDefaultFetchGroup(true); fmd.setEmbedded(true); if (fmd.getEmbeddedMetaData() == null) fmd.addEmbeddedMetaData(getAccessCode(fmd.getDeclaredType())); }