Joined: Sat Aug 13, 2011 10:54 am Posts: 3				
			 | 
			
				
				
					| 
					
						 Hi,
  I created a OSGI bundle and use Hibernate validation. Created an annotation like 
  @Target( { TYPE }) @Retention(RUNTIME) @Constraint(validatedBy = MyCheck.class) @Documented
  public @interface MyCheck { 	String message() default "{nl.rid.domain.MyCheck}"; 	Class<?>[] groups() default {}; 	Class<? extends Payload>[] payload() default {};
  and a ValidationMessages.properties file with contents like
  nl.rid.domain.MyCheck="Should get this error message."
  When I apply the annotation to a class it works fine except that I never get the message text from the ValidationMessage.properties file. If I add a message to the annotation like 
  @MyCheck (message = "another message") 
  then i will get the text "another message".
  Where do I have to put the ValidationMessage.properties file when I am working with OSGI bundles so that the validation framework will use my ValidationMessage.properties file
  regards bertin 
					
  
						
					 | 
				 
				 
			 |