OPINION
A.C. Musgrаve, Jr. appeals the granting of a summary judgment in favor of Brook-haven Lake Property Owners Association (Association) and some of the lot owners in the Brookhaven Pines Addition (collectively, the movants), dismissing his claims for declaratory relief regarding certain rights and responsibilities under a restrictive covenant.
Musgrave contends that the court erred in granting summary judgment on the grounds of res judicata. He argues that his clаims in this case (Musgrave II) do not arise from the same transaction that formed the basis of the prior case (Mus-grave I) and would not have formed a convenient trial unit with the claims in the prior case. Musgrave also argues that summary judgment was improperly granted regarding Pinebrook Properties, Ltd. and its general partner, Pinebrook Properties Management, L.L.C. (collectively, Pi-nebrook), as those entities never asserted an affirmative claim against the defendants. However, Musgrave suggests that his interests are so intertwined with Pine-brook that if the judgment is reversed against him, it should also be reversed against Pinebrook.
In Musgrave II, Musgrave filed suit against the Association and all the owners of lots in the Brookhaven Pines Addition (lot owners) (collectively, the defendants), seeking several declaratory judgments. The movants asserted counterclaims against Musgrave and added Pinebrook as counter-defendants because of the acquisition of the property in question by Pine-brook. The movants filed a Motion for Partial Summary Judgment against Mus-grave and Pinebrook contending that Musgrave II was barred by res judicata. The court signed an order granting partial summary judgment and a partial summary judgment nunc pro tunc clarifying the parties to which the summary judgment applied. The court entered an order severing the partial summary judgment, assigning new cause number 98-420A, and severing the counterclaims of counter- *517 plaintiffs, consolidating those counterclaims -with another cause, and abating the balance of the claims.
In Musgrave II, Musgrave sought (1) a declaration that the defendants may not operate a dump facility on the recreational property owned by plaintiff because the property is subject only to the rights of recreational use by the lot owners; (2) a declaration that Musgrave, as owner of the recreational property, is the sole person authorized to create rules and regulations regarding the use of the recreational property; (3) a declaration that neither the Association nor any lot owner other than Musgrave is authorized to take any action regarding the maintenance, repairs, improvements, modifications, or alterations of the recreational property, including but not limited to the roadways, lake, and dam, without first obtaining Musgrave’s consent; (4) a declaration that Musgrave is authorized to install speed control devices across the roadways within the subdivision property for safety purposes; (5) a declaration specifying the nature and extent of Musgravе’s obligation, if any, to maintain the roads and lake within the recreational property; (6) a declaration that defendants are not authorized to utilize water in Brooks Lake for any purpose other than recreational purposes, and a further declaration that the current use of water by certain lot owners is unauthorized; (7) attorney’s fees; (8) cost of suit; and (9) other entitled relief.
The movants base their claim of res judicata on the proceedings in Musgrave I. Summary judgment proof in Musgrave II consisted only of the final live pleadings and the final judgment in Musgrave I.
Musgrave I was filed by the Association and six individual lot owners (collectively, Musgrave I plaintiffs) against Musgrave and others claiming that a restrictive covenant obligated Musgrave to perform maintenance on the roadways and lake for the benefit of all of the lot оwners in the subdivision and requesting (1) permanent injunctions enjoining defendants from closing a roadway, promoting and allowing recreational use of the property by paying customers, and timbering in the recreational areas without following reasonable restrictions to be established by the court, as well as (2) damages to reimburse Mus-grave I plaintiffs for funds expended on the maintenance of the roadways and the lake. The Musgrave I plaintiffs asserted that the issue of obligation had been established in a previous suit,
Anderson v. McRae,
Musgrave presented several counterclaims in Musgrave I seeking (1) a declaratory judgment that he had no affirmative duty to maintain the roadways and lake in the subdivision, claiming the duty did not run with the land, (2) a declaratory judgmеnt that guests of Musgrave’s retreat may use the lake and recreational property, asking the court to determine what is necessary for a guest to be considered accompanied by a lot owner, including the maximum number of guests who may use the land at one time, (3) a declaratory judgment that implementation of the Forest Resource Management Plan was a reasonable use of the recreatiоnal areas covered by that plan, and (4) a declaratory judgment that Robert Owen’s actions in maintaining a water line on Musgrave’s property was a violation of Musgrave’s property rights.
The Musgrave I plaintiffs asserted special exceptions to Musgrave’s counterclaims, arguing that not all necessary parties were present in the suit. There is nothing in the record before us to indicate that the court ruled оn these special excep *518 tions or that the counterclaims were abandoned. We therefore assume that the counterclaims were live at the time of judgment.
The trial court granted judgment for the Musgrave I plaintiffs permanently enjoining Musgrave (1) from closing the proposed road, (2) from permitting guests of the retreat who were not lot owners to use certain areas, (3) from interfering with the exclusive rights of the lоt owners to use the lake, roadways, and -hunting and recreational areas in the addition, (4) from tim-bering for commercial purposes, or (5) from implementing the Forest Resource Management Plan or any similar plan for the commercial harvesting of trees. The judgment also awarded the plaintiffs damages to compensate them for funds expended on maintenance that the court found Musgrave had a duty to рerform. The judgment stated that all relief not expressly granted was denied. Therefore, we assume that the counterclaims, although not explicitly mentioned in the judgment, were denied.
This court affirmed the judgment, in part, in
Musgrave v. Brookhaven Lake Prof. Owners Ass’n,
Summary judgment is proper when the movant establishes that there is no genuine issue of material fact and that he is entitled to judgment as a matter of law. Tex.R. Civ. P. 166a(c);
Hughes Wood Prods., Inc. v. Wagner,
The res judicata doctrine of issue preclusion, also known as collateral estop-pel, prevents relitigation of particular issues already resolved in a prior suit.
Barr v. Resolution Trust Corp.,
Although the movants, in their First Amended Answer, argued that Musgrave’s claims were barred by collateral estoppel because the issues involved had already been dеcided in Musgrave I, the question of collateral estoppel is not before us on appeal.
*519
The broader res judicata doctrine of claims preclusion prevents the re-litigation of a claim or cause of action that has been finally adjudicated, as well as related matters that, with the use of diligence, should have been litigated in the prior suit.
Compania Financiara Libano v. Simmons,
Res judicata only applies to the cause of action filed by the plaintiff and not to the counterclaim, which might have been filed by the defendant, unless the compulsоry counterclaim rule is applicable.
Lesbrookton, Inc. v. Jackson,
Texas follows the transactional approach to res judicata, claim preclusion, in determining what claims should have been brought, if they could have been, in a prior action.
Barr v. Resolution Trust Corp.,
A final judgment extinguishes the right to bring other suits on the transaction or series of transactions involved in that litigation.... In determining whether the transaction is the same, we consider and weigh whether the facts are related in time, space, origin, or motivation; whether they form a convenient trial unit; and whether their treatment as a trial unit conforms to the parties’ expectations or business usage.
Lone Star Partners v. NationsBank Corp.,
Once Musgrave raised a counterclaim in Musgrave I and put himself in the posture of a plaintiff, he was required by both res judicata and Tex.R. Civ. P. 97(a) to bring all mature causes of action arising from the same set of facts and circumstances.
See Dennis v. First State Bank,
*520
Where the claims arise from the same accident or seek to recover for the same injuries, they have been found to share the same nucleus of operative facts despite the fact that one claim may require proof of facts not required for the other claim.
See S. County Mut. Ins. Co. v.
Ochoa,
Where there is a legal relationship, such as under a lease, a contract, or a marriage, all claims arising from that relationship will arise from the same subject matter and be subject to res judicata.
See Weiman v. Addicks-Fairbanks Road Sand Co.,
Musgrave contends that res judi-cata does not bar this suit because his claims in Musgrave I do not arise out of the same transaction as those in Musgrave II. However, the subdivision’s restrictive covenant constituted a legal relationship between Musgrave, his successors in interest, and the lot owners. Thus, any claim arising from that relationship arises from the same subject matter. Musgrave’s claims in Musgrave I involved the denial of the existence of obligations under the restrictive covenant and the determination of the rights of the parties under the restrictive covenant with respect to allowing guests to use the property, timbering, and maintaining a water line. His claims in Musgrave II also seek to determine the rights of the parties under the restrictive covenant, although with regard to different actions: operating a dump facility, regulating use, obtaining consent, installing speed bumps, and using water. As all the claims relate to the restrictive covenant, they arise from the same subject matter and should have been brought in the samе action if they were mature at that time.
Musgrave also contends that the claims presented in Musgrave II would not have formed a convenient trial unit with the claims in Musgrave I because
*521
they would not have been necessary had he prevailed on his initial defense that he owed no affirmative duties to the lot owners. This argument fails because the contingent nature of claims does not preclude the operation of res judicata.
See Getty Oil Co.,
Musgrave’s argument that inclusion of all his claims in the first suit would not have formed a convenient trial unit because it would have required him to join over 100 lot owners who were not necessary parties to the determination of the claims raised in Musgrave I fails for two reasons. First, it is not сlear that Mus-grave would have been required to implead all of the lot owners for the court in Mus-grave I to render the declarations he requested in Musgrave II. When declaratory relief is sought, all persons who have or claim any interest that would be affected by the declaration must be made parties. Tex. Crv. PRAC. & Rem.Code AnN. § 37.006(a) (Vernon 1997). A declaration does not prejudice the rights of a person not a party to the proceeding.
Id.
The question of joinder under Tex.R. Crv. P. 39 as applied to the declaratory judgment act has been interpreted as providing discretionary authority to the trial court to refuse to render a declaratory judgment when the decree would not terminate the uncertainty or controversy giving rise to the proceeding. Tex. Civ. Prac. & Rem.Code Ann. § 37.008 (Vernon 1986); Tex.R. Civ. P. 39(b);
Caldwell v. Callender Lake Prop. Owners Improvement Ass’n,
Musgrave also complains of the movants’ contradictory arguments: first, that his claims should not be considered in Musgrave I because not all necessary parties were joined; and second, that his claims could not be considered in Mus-grave II because he should have raised them in Musgrave I. While the parties’ expectations are to be considered under the transactional approach to res judicata,
see Vogel v. Travelers Indem. Co.,
*522
Although we find that the claims arise out of the same transaction that was the subject matter of the prior claims, the movants did not provide summary judgment proof that Musgrave’s claims in Mus-grave II were mature during Musgrave I, and res judicata does not apply to claims that are not mature at the time of the prior proceeding.
See Trinity Universal Ins. Co. v. Sweatt,
Musgrave’s claims would have matured only when acts making the controversies live had occurred.
See Conte v. Greater Houston Bank,
Musgrave argues that what applies to him should also apply to Pinebrook because Pinebrook succeeded to his interests.
See Handel v. Long Trusts,
We reverse the summary judgment as to both Musgrave and Pinebrook and remand the cause to the trial court for trial.
