Best code examples for Hibernate ORM Oracle10gDialect class (org.hibernate.dialect.Oracle10gDialect)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM Oracle10gDialect class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM Oracle10gDialect examples from Open Source projects
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());
Full Snippet Info
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)
Full Snippet Info
5
CodeRank