Mistři v programování na #hovnokod

Java #1822

get id by id :)

//get default office id
		Long oid = (Long) JPAHelper.em().createQuery("SELECT id from Office o " +
				"where o.id = ? ")
				.setParameter(1, user.defaultOffice.id)
				.getSingleResult();

Anonymous,