APISonar


org.hibernate.test.id.usertype.json.Json.Json

> org > hibernate > test > id > usertype > json > Json > Json
org APIs hibernate APIs test APIs id APIs usertype APIs json APIs Json APIs Json APIs

Example 1
protected void afterEntityManagerFactoryBuilt() {

		doInJPA( this::entityManagerFactory, entityManager -> {
			Event event = new Event();
			event.setId( 1L );
			event.setIp( "192.168.0.123/24" );
			event.setProperties( new Json( "{\"key\": \"temp\", \"value\": \"9C\"}" ) );

			entityManager.persist( event );
		} );
	}