Hibernate ORM Oracle10gDialect - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM Oracle10gDialect class.

This code example shows how to use the following methods:
    @Before 
    public void setUp() throws Exceptionvalidator = new NameValidator();
        validationResults = new Results();
        ctx = new DiffContext(new Oracle10gDialect(), validationResults, null, null);
    } 
 
    @Test
    public void canSpecifyDefaultRequiredPattern() 
    { 
        validator.setPattern(Pattern.compile("SYS_[A-Z_]+"));
        validator.validate(null, indexForName("SYS_MYINDEX"), ctx);
        validator.validate(null, indexForName("SYS_"), ctx);
        validator.validate(null, indexForName("SYS_MY_INDEX"), ctx);
        validator.validate(null, indexForName("MY_INDEX"), ctx);
         
        assertEquals(2, validationResults.size());
        assertEquals("SYS_", ((ValidationResult) validationResults.get(0)).getValue());
        assertEquals("MY_INDEX", ((ValidationResult) validationResults.get(1)).getValue());
5
CodeRank
This code example shows how to use the following methods:
    @Before 
    public void setUp() throws Exceptionvalidator = new IndexColumnsValidator();
        validationResults = new Results();
        ctx = new DiffContext(new Oracle10gDialect(), validationResults, null, null);
    } 
 
    @Test
    public void testNonIndex() 
    { 
        validator.setPattern(Pattern.compile("SYS_NC.+"));
        assertEquals("SYS_NC.+", validator.getPattern().toString());
         
        try 
        { 
            validator.validate(null, new Table("SYS_NC234234"), ctx);
            fail("Validator should faile for non-index object"); 
        } 
        catch (AlfrescoRuntimeException e)
5
CodeRank