A 17-year-old boy who suffered a brain injury at the age of 11 after almost drowning in a hotel swimming pool on Christmas Eve six years ago has settled a High Court case for €2.5 million.

Approving the settlement today, Mr Justice Coffey ruled the parties to the case must not be identified.

The court was told the boy was staying at a hotel for Christmas in 2014.

He was unable to swim and had been in the children's pool and the larger pool with his mother.

His grandmother was sitting in a chair at the poolside.

The boy was in the children's pool when his mother left the poolside to get dressed and believed he was following her.

However, at some point he entered the larger pool and was found submerged in the water by the father of another child.

The boy suffered an acute brain injury from a loss of oxygen and spent most of the following year in hospital and rehabilitation.

During that time, he required tube feeding and intense physiotherapy and speech and language therapy.

It was initially thought his recovery would be limited and, while he has remaining cognitive and physical difficulties, he had made a "remarkable recovery" and was not able to walk unaided, the court was told.

The boy had a mild learning disability before the accident and now has a moderate disability.

He is in his final year of secondary school and hopes to pursue a Post Leaving Certificate course next year.

In his High Court action, it was claimed that the hotel was negligent in not taking adequate precautions for his safety or having adequate supervision for children using the pool.

It was further claimed that the hotel failed to have a proper standard of safety in place and had failed to notice that he had got into difficulty.

The claims were denied and the settlement was made without admission of liability.

Senior Counsel Liam Reidy said it was an issue between the sides as to whether the size of the pool required an attendant.

He said the larger pool did not fall within the guidelines requiring an attendant, but if combined with the children's pool it would.

Mr Justice Coffey said he had no hesitation in approving the settlement of €2.5m and shared a concern expressed by counsel that the case could be lost if it went to a full hearing.