Code example for Property

Methods: getNamegetValue

0
         checkKeyProperties( id, extraId );
          
     } 
	protected void checkKeyProperties(Property id, Property extraId) {
		assertEquals(toPropertyName("customerid"), id.getName() );
         assertEquals(toPropertyName("ordernumber"), extraId.getName() );
          
         assertFalse(id.getValue() instanceof ManyToOne);
         assertFalse(extraId.getValue() instanceof ManyToOne);
	} 
      
     public void testKeyProperty() { 
        cfg.buildMappings(); 
         
        PersistentClass product = cfg.getClassMapping( toClassName(identifier("Product") ) );
         
        Property identifierProperty = product.getIdentifierProperty();
         
        assertTrue(identifierProperty.getValue() instanceof Component);